Developers community number 1 connection string reference

host Conection string

Posted 2010-05-02 20:55
by Milad
in the SQL Server Forum
my database attach in my asp website
I'm connected with the following conection string in my pc :
Data Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=true;User Instance=true

Now my database I uploaded my site but it takes connection string error

What should my connection string I set ?

Me all about my site, I copy my httpdocs folder
Reply 2010-05-04 09:00
by Max Wikström
in the SQL Server Forum
Hi Milad

Can you please provide the error you get!

It might be though that the mdf database file is not located in the correct directory. For a web app its supposed to be located in a "App_Data" folder located in the web root directory. This is a common error.

Did this resolve the problem?

Else, please post the error you get!
Copyright © 2012 ConnectionStrings.com   |   All Rights Reserved   |   Powered by CSAS   |   Send feedback, articles, requests and more connection strings here.