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 ...connectionString syntax for DNN 6connectionString syntax for DNN 6
Previous
 
Next
New Post
11/18/2011 10:22 AM
 

What is the proper syntax for the connection string?

This page http://www.microsoft.com/web/post/how-to-publish-a-web-application-using-webmatrix

suggests

<add name="CohoWineryConnectionString" connectionString="Data Source=Server01;Initial Catalog=CohoWinery; Trusted_Connection=True" /> 
OR 
<add name="SmallBakeryConnectionString" connectionString="Data Source=Server01;Initial Catalog=SmallBakery; User Id=username; Password=password" /> 

this thread http://forum.arvixe.com/smf/dotnetnuke-software/problems-getting-dnn-going/

suggests

server=PARSLEY.arvixe.com;database=\App_Data\Database.mdf;user id=myuserId;password=correct password

So, is it database or Initial Catalog?

Is it case sensitive (password vs Password)?

Do I have to include and set "User Instance" in the string?

 

Also, do I have to worry about the key?

<add key="SiteSqlServer" value="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;" />


I f I am connecting to a database with user/password.

 
New Post
11/19/2011 10:22 AM
 
"database" or "Initial Catalog" may be used similarily, attribute names are not case sensitive, but the values are. UserInstance is only used, if you are accessing an unattached database in SQL Server Express, using database file name. You need to use key="SiteSqlServer" for DotNetNuke.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
11/19/2011 11:09 AM
 
there are a number of different options depending on what type of security you're using and whether or not you're using sql express user instances - http://www.connectionstrings.com/sql-server-2008 covers all the various permutations. BTW it's easiest to kick off an install and enter the values into the wizard as it will correctly update both connectionstrings.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...connectionString syntax for DNN 6connectionString syntax for DNN 6


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