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 01: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:122

--
2008-12-15 06: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:9008
    Avatar

    --
    2008-12-21 04: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 06: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:9008
    Avatar

    --
    2010-03-10 01: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

    RE: iPhone website logo in DNN root directory by JohnnieD
    I'm supposed to add this link to make my custom logo show up on iPhones. Where in DNN would I a
    iPhone website logo in DNN root directory by JohnnieD
    I'm trying to put an iPhone logo that I made into my site so when someone saves the website on their
    RE: Fixed size container by Joseph Craig
    Use an HTML module and style the container to have a fixed height and width. Set the overflow attr
    Fixed size container by Aggiedan97
    I am looking for advice or an actual container that has a fixed height (and width). An HTML module w
    RE: DNN 6.1 app_offline.htm by Joseph Craig
    If the site "works" in Chrome, Firefox and Safari, but not in IE8 look to IE8 as the problem. It is
    RE: DNN site automatically redirects to a different domain name. by Joseph Craig
    Make a copy what is in the portalalias table and then remove all but the localhost entry. Verify th
    DNN 6.1 app_offline.htm by Dave Hassall
    Hi As recommended I have successfully been using the app_offline.htm whilst performing upgrades t
    RE: DNN site automatically redirects to a different domain name. by imran shaikh
    Hi i have done same as mention in this post my dnn folder name is Trademaxomanupg with
    Enforce Terms Tutorial Update by Vistalogix Corporation
    I tried configuring my DNN 6.1.2 install to have a required "accept terms" checkbox as described in
    RE: Best Practices for Modifying a Custom Module by Joseph Craig
    Start up the development website, then install the module using the package that you have. Then, yo
    Best Practices for Modifying a Custom Module by schilders
    Good Morning, I'm needing to modify a custom built module created by another developer targeted f
    RE: Admin menu problem by alireza arabiyan
    hi in localhost i have http://localhost/senf/خانه.aspx and http://localhost/senf/Admi
    RE: Admin menu problem by Joseph Craig
    Yes, that is what you should have done. What is the URL for your home page? What is the URL for
    RE: Admin menu problem by alireza arabiyan
    hi first in localhost i add my domain.com as portal alias. then copy all files to host , restore my
    RE: Admin menu problem by Joseph Craig
    How did you move it? Have you added an entry in the portalalias table for the site's domain name?
    RE: Re: SQL SERVER 2008 R2 Remote connection by Joseph Craig
    Set up a user with dbo privileges and set the connection string for that user, rather than using Win
    Re: SQL SERVER 2008 R2 Remote connection by Prakasam Srinivasan
    I have successfully configured MSSQL Server 2008 r2 remote connection. I am using windows 7 and it h
    Admin menu problem by alireza arabiyan
    hi i installed dnn 6 on localhost and move it in my host, all link's , pages and modules are ok,
    RE: dnn 4.4 upgrade issue by imran shaikh
    Thanks you all it is done by renaming release.config to web.config procedure
    RE: dnn 4.4 upgrade issue by imran shaikh
    Thanks you all it is done by renaming release.config to web.config
    You are not logged in.
    You must log in to access all 
    650+ videos, tutorials, podcasts, and more.
    RSS Feeds