Database connection string settings when dnn is installed

Source: Internet
Author: User
I recently came into contact with dnn and thought it was something.
There are many installation websites for dnn Article. I'm installing my first dnn ProgramAlthough I read those articles, it still doesn't help. Sometimes, my system configuration is different from others.

When installing the dnn program, the database that comes with the program is the sqlexpress database. If sqlexpress is installed on your system, the connection string is consistent with the default one:
<Add name = "sitesqlserver" connectionstring = "Data Source =./sqlexpress; Integrated Security = true;User instance = true; Attachdbfilename = E: \ Smith \ dnnlearning \ app_data \ database. MDF; "providername =" system. Data. sqlclient "/>
If sql2005 is installed on your system, change the connection string slightly:
<Add name = "sitesqlserver" connectionstring = "Data Source = cq14; Integrated Security = true;User instance = false; Attachdbfilename = E: \ Smith \ dnnlearning \ app_data \ database. MDF; "providername =" system. Data. sqlclient "/>

Of course, there are other writing methods for sql2005 connection strings, which I will not talk about here. In fact, the key setting here is the setting of the user instance. This concept was not clear at first, so it took a lot of detours. User instance = false indicates that the connection is switched from the default SQL Server express to the instance running in the current user account. If sql2005 is installed, set it to false.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.