Blog Home  Home Feed your aggregator (RSS 2.0)  
Venexus DotNetNuke Blog - Moving DNN 3.1 from SQL Server 2000 to SQL Server 2005
DotNetNuke Articles, Code Snippets, Errors, and News
 
 Monday, December 05, 2005

We have a large DNN installation and we are moving everything from DNN 3.1 to DNN 4.0 and needed to do some testing. So, first we need to get the DNN database from the local SQL Server 2000 to a remote SQL Server 2005.

Here is what I did...

  1. Went into DNS and created a new subdomain called dev.somedomainname.com and pointed it to the development server IP address.
  2. Copied the entire DNN directory on the production server to the development server.
  3. Reset permissions on the dev server for the DNN folder I copied from production to allow Network Service full permission.
  4. Created a new website on Dev in IIS and setup a host header for the new subdomain and for localhost, pointing it to the DNN folder I copied from Prod.
  5. Detached the production DNN database form the SQL Server 2000 instance.
  6. Copied the MDF and LDF files for the DNN database from \mssql\MSSQL\Data on Prod and moved them to \Microsoft SQL Server\MSSQL.1\MSSQL\Data  on Dev (actually I just made a copy of the files in the same folder so I could quickly get Prod running again and would not have to wait on the slower network connection to move 3 Gb of data over, then moved them over to Dev and renamed them by removing "Copy of " from the filename).
  7. Attached the database I copied from Prod using SQL Server Management Studio. Part of this process automatically upgrades database to from 2000 to 2005. WARNING! You cannot move a SQL Server 2005 database back to SQL Server 2000 using the same method. Nor can you use replication from SQL Server 2005 to a 2000 instance...or not atleast when I tried it in CTP release a couple of months ago.
  8. Opened web.config and changed the server name, username, and password for the remote SQL Server.
  9. Opened up a browser on the Dev server and went to http://dev.somedomainname.com and confirmed site was assessible.

I will repeat these tasks again when I have done thorough testing on Dev with the exception of copying the DNN root over. I will post any issues I encounter...

Monday, December 05, 2005 6:43:35 PM (US Eastern Standard Time, UTC-05:00)  #       |   | 
Copyright © 2010 Venexus, Inc.. All rights reserved.