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 ...SQL Express connection stringSQL Express connection string
Previous
 
Next
New Post
11/10/2006 1:10 PM
 

I just spent a few hours fiddling with a new 4.3.5 Install, setting all the file permissons and such, configuring IIS and so on and so on.  Got everything working excecpt the connection to SQL Express.  (First time using it, always use SQL)  After googling for an hour trying to debug the connection, I just commented out the SQLExpress connection keys and used the SQL 2000/2005 section and it worked great.

So the two connection strings ended up looking like this:

<!-- Connection String for SQL Server 2005 Express commented this crud out:
    <add
      name="SiteSqlServer"
      connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|DotNetNuke.mdf;"
      providerName="System.Data.SqlClient" />-->
  <!-- Connection String for SQL Server 2000/2005--> Uncommented this one:
  <add name="SiteSqlServer" connectionString="Server=MachineName\SQLEXPRESS;Database=DotNetNuke;uid=sa;pwd=password;" providerName="System.Data.SqlClient"/>

And the string below (for legacy modules):

<add key="SiteSqlServer" value="Server=MachineName\SQLEXPRESS;Database=DotNetNuke;uid=sa;pwd=password;"/>

That seemed to do the trick.  Does anyone know any reason this won't work down the road?

Hope this helps someone banging their head against SQL Express.

Weezy

 
New Post
11/16/2006 7:49 AM
 

I've been doing this from the start - having never used the express string but deleting it instead of commenting it out the first time I open a web.config file using SQL2005 Express. I have had great results and not sure why there was a need for the express string.

Whatever works!

Mike


Kist Enterprises
www.kistenterprises.com
 
New Post
11/16/2006 8:07 AM
 
sqlExpress string only works as long as you don't touch the database using sql management studio.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/16/2006 3:35 PM
 

Okay I am banging my head on SQLEXPRESS

heres my connection string

<add key="SiteSqlServer" value="Server=DYLANBARBER\SQLEXPRESS;Database=DotNetNuke;Trusted_Connection=True;" />

 

Now this should work right?


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
New Post
11/16/2006 4:18 PM
 

sqlExpress string only works as long as you don't touch the database using sql management studio.

 

WHY?


Dylan Barber http://www.braindice.com - Dotnetnuke development classes - skins and modules
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...SQL Express connection stringSQL Express connection string


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