Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to replace objectQualifier in 01.00.00.SqlDataProvider while installing packageHow to replace objectQualifier in 01.00.00.SqlDataProvider while installing package
Previous
 
Next
New Post
1/7/2009 6:32 AM
 

I am using Dnn 4.8.4

I had created module , and written procedures inside 01.00.00.SqlDataProvider file  like

select * from dnn_portals ( where "dnn_"  is the object Qualifier in my Dotnetnuke site )

After installing my module in Test Server ( Test Server Dotnetnuke Site ) , It says 'dnn_Portals' was not found . In TestServer ObjectQualifier is null, so there the query works  like this

select * from portals  instead of select * from dnn_portals

so is there way to find anad replace ObjectQualifier  in 01.00.00.SqlDataProvider while installing package

 

 

 

 

 
New Post
1/7/2009 7:06 AM
 

In your sqlDataProvider file when you create your sql it should be something of the following nature

IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID = OBJECT_ID(N'{databaseOwner}[{objectQualifier}GetSector]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
    DROP PROCEDURE {databaseOwner}[{objectQualifier}GetSector];
GO

CREATE PROCEDURE {databaseOwner}[{objectQualifier}GetSector]
(
    @SectorID int
)
AS
BEGIN

    SELECT
        [SectorID],
        [ModuleID],
        [PortalID],
        [ParentSectorID],
        [Sector]
    FROM
        [{objectQualifier}Sector]
    WHERE
        [SectorID] = @SectorID
END
GO

This will allow both the database owner if it is specified in the web.config and the object qualifier to be inserted into the sql when it is installed into your portals. The other option with this is if you want to run the sql file on your portal, when you login as a super user then in the sql tab on the host menu load the file in the text box and select the script check box. And click the button on the page it will run the sql and place the appropriate tags when it is run from there.

 


Sam
http://www.learnmsnet.com/ - Blog about ASP.NET and DotNetNuke
http://www.shancer.com/ - Building modules for DotNetNuke
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to replace objectQualifier in 01.00.00.SqlDataProvider while installing packageHow to replace objectQualifier in 01.00.00.SqlDataProvider while installing package


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out