Products

Solutions

Resources

Partners

Community

About

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 ...Fix for disappearing modules when using DB schema other than dboFix for disappearing modules when using DB schema other than dbo
Previous
 
Next
New Post
3/21/2007 3:08 PM
 

Environment:
DNN 4.4.1 on 64-bit Win2003 web server
SQL2005 SP2 on a 64-bit dual core Win2003 database server


At times all modules on a page may disappear completely if you installed DNN under a database schema name in SQL2005 (example: databaseOwner=”DNN”).  You can temporarily fix it by clearing the module cache in the site settings (as long as your login module didn’t disappear also!).  When the modules disappear you’ll see an exception in the log that usually states that DNN can’t find vw_ModulePermissions.  This is because the reference to vw_ModulePermissions is not fully qualified in the stored proc GetModulePermission.  SQL Server does it’s best to find the correct schema/owner for the view but it will sporadically fail (possibly only on dual core machines) and default back to “dbo” which will cause the error.  There is also a performance benefit to fully qualifying the database objects because there is a better chance an existing query plan can be reused when the object is fully qualified.

For a permanent fix I changed the following files with the changes below and reinstalled DNN:
DotNetNuke.Data.SqlDataProvider
04.04.00.SqlDataProvider
04.04.01.SqlDataProvider

Find and replace each string making sure to prefix with a SPACE:
“ {objectQualifier}”  to “ {databaseOwner}{objectQualifier}“ 
“ [{objectQualifier}”  to “ {databaseOwner}[{objectQualifier}“ 

Find and replace each string making sure to prefix with a TAB:
“<TAB>{objectQualifier}”   to “<TAB>{databaseOwner}{objectQualifier}“ 
“<TAB>[{objectQualifier}”  to “<TAB>{databaseOwner}[{objectQualifier}“ 

Hope this helps,
Keith Rogers

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Fix for disappearing modules when using DB schema other than dboFix for disappearing modules when using DB schema other than dbo


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