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...Upgrading DNN P...Upgrading DNN P...SQL Upgrade IssueSQL Upgrade Issue
Previous
 
Next
New Post
1/29/2010 4:17 PM
 

I am trying to upgrade my database from SQL2000 to SQL2005 and I've come across something strange that I hope someone has seen before (and resolved)

I updated the database the same as I have done others.:

  1. Backup the database in SQL2000
  2. Create a new database on the SQL2005 server
  3. Restore the database into SQL2005
  4. Re-create the user and give them dbo rights to the database
  5. Re-point the DNN install

All of this worked fine until I tried testing the 5.1.4 upgrade (from 4.8.4)  All the database upgrades failed.  Looking at the logs, they referenced a different user account than the one it should be.

NCGTDNNUSER is configured as follows:

  • dbo to the database in SQL2000
  • dbo to the database in SQL2005
  • Has a valid login on the server in both SQL2000 and SQL2005
  • Is the UID in the web.config file

NCGTOURDNN is configured as follows:

  • dbo to the database in SQL2000
  • dbo to the database in SQL2005
  • Does NOT have a valid login on the server in either SQL2000 or SQL2005

I tried to delete the user in SQL2005 and it fails telling me that the user owns a schema in the database.  Looking at the database schema, I find one called NCGTOURDNN.  Trying to delete that and it fails telling that the schema is being referenced by an object "davetest".  The only reference to davetest that I could find was the end of an portalalias, which I deleted (sitename/davetest).  Still no luck deleting the schema, it still says that it is being referenced by davetest.

If anyone has a clue what I can do to fix this, it would really be appreciated.

Cheers


-----
Cheers
Dave
 
New Post
2/3/2010 1:10 PM
 

I finally resolved this.  I looked at the objects by using this query

SELECT name, object_id, type_desc

FROM sys.objects

WHERE OBJECTPROPERTY(object_id, N'SchemaId') = SCHEMA_ID(N'YourSchema')

ORDER BY type_desc, name;

 

In addition to the davetest User Table, it also showed a stored proc,  NTForums_GetForumsByGroup2, that was related to Active Forums - http://www.activemodules.com/Communit... (look for the post at the bottom of Page 2)

Once I dropped the procedure (the scripts that Active Modules provided didn't work, I deopped the procedure using the schema notation) and the davetest User Table (which I could not find anywhere), I was able to delete the NCGTourDNN schema and user and the upgrade to 5.1.4 proceeded nicely (with the exception of the HTML module failing which I am working on now...)

Cheers
Dave


-----
Cheers
Dave
 
New Post
2/4/2010 8:22 PM
 

Hi Dave,

Thanks for posting your solution. I have an old SBS2003 box still running SQL Server 2000 and a couple of test DNN sites there. What you have posted may very well help me with some of my future issues...

Cheers,

Trev.

 
New Post
2/8/2010 3:11 PM
 

No problem.  I always try to close the loop :)


-----
Cheers
Dave
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...SQL Upgrade IssueSQL Upgrade Issue


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