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 ...Moving from Server 2000 withe MSDE2000 to Server 2003 with SQL Express 2005Moving from Server 2000 withe MSDE2000 to Server 2003 with SQL Express 2005
Previous
 
Next
New Post
6/10/2007 5:21 PM
 

I recently upgraded a DNN installation on a Windows 2000 Server using MSDE 2000 from version 3.2 to 4.05.01.  Everything is fine with that and works like it did before.  But now I have to move the installation off of that server and onto a Windows 2003 Server running SQL 2005 Express.  I have tried it three times and can't get it to work yet. 

The steps I'm taking are to backup the MSDE database on the old server and copy the backup file to the new server and restore it in SQL 2005 Express, then copy the folder containing the dnn files on the old server to the new server and set up IIS with a virtual directory pointing to the new folder.  I also modify the web.config file in four places as shown in red text. 

Here are the original lines in web.config....

-----------------------------------------------------------------------------

  <connectionStrings>
    <!-- Connection String for SQL Server 2005 Express
    <add
      name="SiteSqlServer"
      connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
      providerName="System.Data.SqlClient" />
   -->
    <!-- Connection String for SQL Server 2000/2005 -->
    <add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=dnn;pwd=password;" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>
    -->
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules   -->
    <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=dnn;pwd=password;" />
    <add key="InstallTemplate" value="DotNetNuke.install.config" />

----------------------------------------------------------------------------------------------

And here is how I change it for the new server....

----------------------------------------------------------------------------------------------

  <connectionStrings>
    <!-- Connection String for SQL Server 2005 Express   -->
    <add
      name="SiteSqlServer"
      connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
      providerName="System.Data.SqlClient" />
    <!-- Connection String for SQL Server 2000/2005   

<add name="SiteSqlServer" connectionString="Server=(local);Database=DotNetNuke;uid=dnn;pwd=password;" providerName="System.Data.SqlClient" />
  -->
 </connectionStrings>
  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules    -->
    <add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>
    <!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability - legacy modules

    <add key="SiteSqlServer" value="Server=(local);Database=DotNetNuke;uid=dnn;pwd=password;" />

   -->
    <add key="InstallTemplate" value="DotNetNuke.install.config" />

-------------------------------------------------------------------------------------------------

When I browse to the site on the new server, it goes into the installation wizard.  I have tried to go through the installation wizard and can't get past the SQL server part of it.  I'm wondering why it even goes to the installation wizard in the first place.  Seems to me that it should just start up as it did before.  I feel like I am missing something simple here, but I'm not knowledgeable enough to figure it out, so I am appealing to you experts to please educate me.

 

 
New Post
6/11/2007 2:23 AM
 

please coninue using the SQL2000/2005 style connection string only adopt to the new server.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
6/11/2007 1:33 PM
 

Thanks for the reply Sebastian.  Pardon my ignorance, but what do you mean by adopt to the new server?

 
New Post
6/11/2007 1:59 PM
 

SCADATech,

The sql server express connection string requires that you specify the path to the database file.  It seems to me that you are using the express connection string, but are pointing to the default database (database.mdf).  If you restored your backup using sql server 2005 management studio express it most likely put the actual MDF somewhere deep in in the file system (something like C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data)

I would suggest checking to see where the mdf file is located and specifying the full path in your connection string.

hope that helps,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
6/11/2007 3:53 PM
 

Ah yes, that makes perfect sense.  That was a total duh on my part.  I should have realized that when I changed to the Express string, it had no idea what the name of the database was or where it was located.  Ok thanks sir.  I will change database.mdf to the full path and filename of the actual restored database and give that a shot.  I won't be able to get to it until tonight, but I will reply back here with the results.  Appreciate your help.

 

 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Moving from Server 2000 withe MSDE2000 to Server 2003 with SQL Express 2005Moving from Server 2000 withe MSDE2000 to Server 2003 with SQL Express 2005


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