Click here to Skip to main content
15,945,119 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
hi,, please help me am battling with connection string for the sql database file of Vs,2012
the current connection is working on local database server which is :
Data Source=(localdb)\v11.0;AttachDbFilename=|DataDirectory|\Database1.mdf;..

I want to change it to be used remotely, to connect to this database file on different computer via network,, is it possible??
[no name] 3-Oct-12 17:06pm    
So change your data source to point to the database server that you want.

thank you,, it is really nice website..
I think Sql data base file dosn't support remote servers , as far as I see in this website it is only support local files. or I must use SQL server instead of SQL database file
Share this answer[^] is a very useful website: add it to your favorites.
Share this answer
I've tried to change
Data Source=(localdb)\v11.0;AttachDbFilename=|DataDirectory|\Database1.mdf;..


Data Source=(\v11.0;AttachDbFilename=|DataDirectory|\Database1.mdf;..
and even
Data Source=(\(localdb)\v11.0;AttachDbFilename=|DataDirectory|\Database1.mdf;..

but didn't find the server
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900