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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...(So close...) Server can(So close...) Server can't establish connection at localhost
Previous
 
Next
New Post
12/8/2006 8:55 AM
 

The object qualifier is something that you can set in your web.config file that will prefice all of the database tables, stored procedures, views, foriegn key constraints, etc... with this prefix.  It is set in your web.config file in this section.  In the example below, the object qualifier is set to dnn_ so the portalalias table would be created as dnn_portalalias in the install scripts.  Also note the databaseowner field to.  This should be set to the account in sql server that owns the schema (in most cases this is just dbo, but if your sql server connection string uses a different account to login, you should make this that account.)  Hope this helps

 

<

<

<

<

</

</

data defaultProvider="SqlDataProvider">providers>clear />add name="SqlDataProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionStringName="SiteSqlServer" upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="dnn_" databaseOwner="xxxxxxx" />providers>data>

Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
New Post
12/8/2006 9:52 AM
 
[QUOTE]


frankt wrote

The object qualifier is something that you can set in your web.config file that will prefice all of the database tables, stored procedures, views, foriegn key constraints, etc... with this prefix. It is set in your web.config file in this section. In the example below, the object qualifier is set to dnn_ so the portalalias table would be created as dnn_portalalias in the install scripts. Also note the databaseowner field to. This should be set to the account in sql server that owns the schema (in most cases this is just dbo, but if your sql server connection string uses a different account to login, you should make this that account.) Hope this helps






Thanks, Frank, for the description. It really helps towards filling in some gaps of my familiarity with databases. Before I forget, I think the post above might have chopped off some of the lines of code you intended to show. It always does that to me, anyway.

Now that really helps me to put together a few things. To point: I had noticed that in this database when I need to update a Portal Alias, I could not use:
update dnn_portalalias set httpalias= blah blah

This surprised me because I had used dnn_portalalias before with other DNN ver 4.x databases.

Indeed when I looked through the tables (I hope I am using the correct term, anyway) I could see that the table name was just dbo.PortalAlias . And not dbo.dnn_PortalAlias. So I lopped off the prefix and found that I was able to update/alter a value in a query command.

So your explanation closes out my understanding of that syntax.

However ...
it opens up a new question.

(1) Since the database I am working with here (remember, it's from DNN v.2 era) does not have tables with that prefix name, then does that mean that in the past at some point DotNetNuke switched from using just dbo.PortalAlias to dbo.dnn_PortalAlias ?

(2) If the answer is yes above, then I am quite certain I will need to use the _Update download when I next try this process, and not use the _Install download.

(3) Don't forget that the portal is seemingly being called up operationally, because when I start up the application via the web server, it thinks a bit and then does indeed call up a DNN-style URL. But that URL leads to just a blank page for now.


Thank you.

 
New Post
12/8/2006 6:47 PM
 

You should not have a mixed set of object owners or a mixed set of object qualifiers.  In other words, all tables should be owned by dbo or some other sql server account, and all tables should either have a qualifier or not.  In other words all the tables should have dnn_TableName or just TableName.  Change the object qualifier in the web.config to "" (i.e. nothing).  Rename the table dnn_portalAlias table to just PortalAlias and restart the IIS server to flush the cache. 

My guess your original installation did NOT have an object qualifier so all the table names have no prefix.  So just set the objectqualifier in the web.config file as mentioned to a null string ("") and that way when DNN talks to the database it will just use the table name. 

Hope that makes sense.


Version: DNN 4.4.1
Hosting Provider: 1and1
RAISE
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...(So close...) Server can(So close...) Server can't establish connection at localhost


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