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

HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Converting an existing DNN 5.0 running on MSSQL Express 2005  to SQL 2005Converting an existing DNN 5.0 running on MSSQL Express 2005 to SQL 2005
Previous
 
Next
New Post
3/23/2010 6:23 PM
 

Hello everyone!

I'm in a bit of a pickle because of my lack of knowledge of SQL. So, I'm begging for some mercy here on getting me on the right track.

My company hosts it's internal  website on a Windows Server 2003, IIS 6.0 with DNN 5.0 connecting to a MS SQL Express 2005 Database.

Due to a few constraints and other server upgrades, I'm hoping to host the SQL portion of the website on our ultra-awesome SQL server machine. (64 bit, MS SQL 2005 Standard, Windows 2003 Server in a domain)

Here lies the problem and what I have tried so far.

I have installed SQL 2005, backed up the database on the SQL Express machine, Restored the backup on the new Awesome Server,  ensured that there were appropriate permissions on the new Database, and made these changes in the web.config file

Red is what used to be used

Green is what is now.

 

    <!-- 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=cenanfp01;Database=DotNetNuke;uid=sa;pwd=******;" 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=cenanfp01;Database=DotNetNuke;uid=sa;pwd=*******;"/>
 
I am able to get connected to the server, but I only get a

This site is currently Unavailable

Please check back later

 

Any thoughts or ideas? I'll date an ugly sister of yours for the answer.

Gord

 

 
New Post
3/23/2010 7:04 PM
 

Two things...first, you should never use the SA account to run a database. you should create a new user that has access to that one database only. This is just good [security] policy.

Second, although you used the same login credentials on the new SQL server, they do not share the same SID (security identifier). These are unique to each instance of SQL and they can exported by running the sp_help_revlogin script in the master db.

Here is what I would suggest, open your SQL 2005 Management Studio, go the the Security node and right click "Logins", select New Login. Create a new user  with SQL Server Auth, uncheck the 3 enforce security boxes. Select you DB as the default. Now in the left panel select "User Mappings". Check your DB in the top pane and add 'db_owner' in the bottom pane. Select OK. Populate your web.config with the new values.

 

HTH



 
New Post
3/23/2010 7:07 PM
 

Try to allow remote connection to your SQL server in the SQL Server Surface area configuration

Rgds

 
Previous
 
Next
HomeHomeDevelopment and...Development and...SQL and SQL Ser...SQL and SQL Ser...Converting an existing DNN 5.0 running on MSSQL Express 2005  to SQL 2005Converting an existing DNN 5.0 running on MSSQL Express 2005 to SQL 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