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 ...web.config settings for Sql 2005 Express and DNN4  - HELP!!!!!!!!web.config settings for Sql 2005 Express and DNN4 - HELP!!!!!!!!
Previous
 
Next
New Post
12/1/2006 8:56 PM
 

We have a Win2k3 R2 Std Server, SQL 2005 Server Express and Management Studio Express.
We have created DB=dnnDB, and using SQL Server Authentication with user=dnnUser, password=dnnUserPassword.

Can anyone please tell me exactly what we should have in our web.config file for ...
   • connectionString="  " in the <connectionStrings> section and
   • value=" " for the key="SiteSqlServer" in the <appSettings> section and
   • any other required changes we might be over looking
... in order to make the install work?

This is our first attempt at SQL Server Express and we have not been able to find any usefull references out there that will help us with this. Any help would be greatly appreciated!!!

(And if anyone knows where this may already be documented please forward us that reference! )

Thank you.

 

 
New Post
12/1/2006 10:13 PM
 
Hello --

I have had more luck using an SQL Express string, but giving db_owner permissions to sa ,
and using an SQL Authentication with sa and yoursapassword.

Here is an example of what I have working currently on a local DNN4 install with SQL Server 2005 Express:

replace * with < and & with >

*connectionStrings&
*!-- Connection String for SQL Server 2005 Express
*add
name="SiteSqlServer"
connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=bringhome;uid=sa;pwd=mypassword;"
providerName="System.Data.SqlClient" /&
--&
*!-- Connection String for SQL Server 2000/2005 --&
*add name="SiteSqlServer" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=bringhome;uid=sa;pwd=mypassword;" providerName="System.Data.SqlClient" /&
*/connectionStrings&

Thanks,
Travis
dnncassini.com
 
New Post
12/1/2006 11:51 PM
 

OK, so here is what I have ...

  <connectionStrings>
    <!-- Connection String for SQL Server 2005 Express -->
    <add
     name="SiteSqlServer"
     connectionString="Data Source=.\SQLEXPRESS;Initial      Catalog=dnnDB;uid=dnnUser;pwd=dnnUserPassword;"
 providerName="System.Data.SqlClient" />

    <!-- Connection String for SQL Server 2000/2005
    <add
      name="SiteSqlServer"
      connectionString="Server=(local);Database=DotNetNuke;uid=;pwd=;"
      providerName="System.Data.SqlClient" />
   -->
  </connectionStrings>

and

  <appSettings>
    <!-- Connection String for SQL Server 2005 Express - kept for backwards compatability - legacy modules   -->
    <add key="SiteSqlServer" value="Data Source=.\SQLEXPRESS;Initial Catalog=dnnDB;uid=dnnUser;pwd=dnnUserPassword;"/>

And when I run open the browser to the site I now get the following error...

 

Error Installing DotNetNuke

Current Assembly Version: 04.03.06

ERROR: Could not connect to database specified in connectionString for SqlDataProvider

 

What am I doing wrong/missing here?

 
New Post
12/2/2006 10:37 AM
 


I notice in your connection string typed above (in the post immediately before this one) you are not using sa as the login. sa is a high-level user default for the SQL Server 2005 Express. Was your database setup with sa as the owner?

Thanks,
Travis
 
New Post
12/2/2006 11:05 AM
 
dnnUser has been set with dbowner on dnnDB
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...web.config settings for Sql 2005 Express and DNN4  - HELP!!!!!!!!web.config settings for Sql 2005 Express and DNN4 - HELP!!!!!!!!


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