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 string ?sql express connection string ?
Previous
 
Next
New Post
2/6/2014 11:19 AM
 

Hi you all i am trying to connect from a my webprovider dnn install to my local sql express 2012 DB with the following string but no go, hope you can point me in the right way

 

<connectionStrings>

    <!-- Connection String for SQL Server 2005/2008 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 2005/2008  -->

    <add name="SiteSqlServer" connectionString="Server=82.173.72.23\sqlexpress;Database=??;uid=??;pwd=??;" providerName="System.Data.SqlClient" />

  </connectionStrings>

  <appSettings>

    <!-- Connection String for SQL Server 2005/2008 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 2005/2008 - kept for backwards compatability - legacy modules     -->

    <add key="SiteSqlServer" value="Server=82.173.72.23\sqlexpress;Database=??;uid=??;pwd=??;" />

  

 
New Post
2/6/2014 11:57 AM
 
typically it's something obvious once you see it, but the easiest way I've found to debug these is to create a UDL file (http://msdn.microsoft.com/en-us/libra...(v=vs.71).aspx), and use the wizard to connect to the database. Once it's successful open the .udl file in notepad and you will see a valid connectionstring that you can then use to update both the connectionstrings in dnn's web.config file

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/6/2014 2:53 PM
 
this is from the udl file how do i put this in the conectstring


Provider=SQLNCLI11.1;Integrated Security="";Persist Security Info=False;User ID=??;Initial Catalog=??;Data Source=mypc\sqlexpress;Initial File Name="";Server SPN=""
 
New Post
2/6/2014 3:50 PM
 
open the udl file again and click the provider tab and select "Microsoft OLE DB provider for sql server" and then check the udl file contents.

Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
2/7/2014 9:59 AM
 
ok done i now i have

Provider=SQLOLEDB.1;Persist Security Info=False;User ID=??;Initial Catalog=??;Data Source=??

how to put this in web.config ?
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...sql express connection string ?sql 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