You need to Register for free and Login to post a message in the forum.

Forum

Issue 33 SQL updating page settings
Last Post 2010-03-10 12:06 AM by Joseph Craig. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Aggiedan97User is Offline
Nuke Master
Nuke Master
Posts:136

--
2008-12-15 05:45 PM
    I have an interesting problem that I could use some help understanding.

    I have multiple DNN instances on my localhost (some from live sites and other from new installs 4.8.x, 4.9, & 5.0).

    On a live site that I am testing locally, I am having issues updating the page settings Title, Description, and Keywords.
    I have developed a variation of the script from the tutorial in Issue 33 regarding updating the page settings using SQL.

    I developed the variation on a new local install (v.4.9) which it works great and allows me to update all th pages at one time and provides a before and after snapshot of what was changed.  The variation difference is that updates multiple TabID's that meet the 'where' criteria.  It works perfectly on the new local host instance and fails on the live/local copy.  The error message refers to a procedure installed by "DNN 360 tab module".  However, I can't find the stored procedure that the error message refers to. 

    Error message:
    Msg 512, Level 16, State 1, Procedure DNN360Menu_Update, Line 9
    Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

    SQL Statement

    use db_name

    DECLARE @TabOrder int
    SET
    @TabOrder = 10000

    DECLARE @PortalIDEdit int
    SET
    @PortalIDEdit = 0

    DECLARE @IsVisible int
    SET
    @IsVisible = 1

    select
    Title, Description, KeyWords from tabs
    where portalid = @PortalIDEdit
    and TabOrder < @TabOrder
    and IsVisible = @IsVisible

    UPDATE Tabs
    SET Title = 'page title text'
    WHERE portalid = @PortalIDEdit
    and TabOrder < @TabOrder
    and IsVisible = @IsVisible

    UPDATE Tabs
    SET Description = 'description text.'
    WHERE portalid = @PortalIDEdit
    and TabOrder < @TabOrder
    and IsVisible = @IsVisible

    UPDATE
    Tabs
    SET KeyWords = 'Keyword text'
    WHERE portalid = @PortalIDEdit
    and TabOrder < @TabOrder
    and IsVisible = @IsVisible

    select Title, Description, KeyWords from tabs
    WHERE portalid = @PortalIDEdit
    and TabOrder < @TabOrder
    and IsVisible = @IsVisible

    <>

    So the question is, how do I find this procedure? Has anyone run in to this or have any thoughts how to get around it? 
    I do like being able to update all the tabs I select at one time and understand I could probably specify each one and this would no longer be an issue.  However, I would sooner remove this tabs module and seek a non-conflicting alternative provider of the tabs function.

    Regards,
    AggieDan97
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2008-12-21 03:57 PM
    Stored procedures are in the Programmability\Stored Procedures section of you site's database.

    Are you using the DNN360 menu?

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    Pedro CapetilloUser is Offline
    Nuke Newbie
    Nuke Newbie
    Posts:1

    --
    2010-03-09 05:16 PM
    I have i similar problem and i am using DNN360 menu. Does anybody have information about that?

    Best

    Pedro Capetillo
    Joseph CraigUser is Offline
    DNN Creative Support
    Nuke Master VI
    Nuke Master VI
    Posts:9299
    Avatar

    --
    2010-03-10 12:06 AM
    Can you describe the problem a bit more?

    Joe Craig, DNN Creative Support

    Subscribe to DNNCreative
    I recommend PowerDNN for DotNetNuke Hosting.
    You are not authorized to post a reply.


    Active Forums 4.3

    Latest Forum Posts

    Rename or move site from domain name to subdomain name by Bill Quinn
    Hi, I have an old DNN site on a a TLD like this: websitename.com I have created a portal on
    RE: Deploying dnn by Sameer
    Thanks joeseph glad with your answer it means i can use CE for my site if the traffic are not
    Unable to Create Skin Package by schilders
    Hi, I'm trying to create the skin package and manifest for my new skin. I created the new skin e
    RE: user adding images by Joseph Craig
    I think that you will need to go to the File Manager and give the user and/or security group file up
    RE: lightroom effect for skin by Joseph Craig
    There are modules available that do this. On the commercial side, I've used Mandeeps' Live Conten
    RE: Creating structured page content by Joseph Craig
    Take a look at Ventrian's News Articles module. While commercial, it has a very modest price! Th
    Creating structured page content by Stephen Bugden
    Hi, Can anyone recommend a module for creating and managing page content? The kind of thing I'
    lightroom effect for skin by everett31
    I’m looking for a way to add the lightbox effect to a skin file. I would like the end user to have
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    According to my web searching, @font-face references cause crashing in IE7 and IE8 with css3-mediaqu
    user adding images by rod lloyd
    I have set up permissions for certain users to edit a module, but when they log-on and enter Edit Co
    RE: Deploying dnn by Joseph Craig
    The free Community Edition of DotNetNuke is perfectly fine for creating "world class" websites. Whi
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    any idea what approach I should take - IE completely locks up. The only cause is the combo of the
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by Joseph Craig
    If you're up to doing some debugging, you might be able to figure out where the problem lies. That'
    RE: Deploying dnn by Sameer
    Hi Joe Thanks for your reply i am planning to create my own DNN site so for that i have chec
    RE: css3-mediaqueries.js and Dynamic Forms Crash Page in IE by WinXnet
    Thanks for the response, but I was hoping it was something I could fix with some skin tweaks - one i
    RE: Changing Search text by Joseph Craig
    You will want to look here for references about the DotNetNuke skin objects. The document written b
    Changing Search text by Abraham Tameru
    Hi, Instead of having "Search" text near the search text box, I wanted to replace it by an image
    RE: Strange issue with file manager on sub domain (sperate portal) by Web Services
    Just sent it.
    RE: Not able to load my dotnetnuke website on Internet Explorer though it is working fine with other browsers by Joseph Craig
    Did you get this fixed? (Apologies for not getting to this sooner...)
    RE: Web Design Company London by Johnny Gregory
    Hello I am a Manager here at PowerDNN and I would like to see if you are still looking to get the wo
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds