Connection Strings for msvs 2010



i read should try not use user instance connection string going forward sql server 2008 (i may have misunderstood)

i have tried change connection strings in app no luck can me here

this have been using. how accomplish string below without user instance?

string destconnectionstring1 = "data source=.\\sqlexpress;attachdbfilename=|datadirectory|fbasic8.mdf;integrated security=true;connect timeout=30;user instance=true";

tried got error database exists or specified file cannot opened or located on unc share

string destconnectionstring1 = "data source=.\\sqlexpress;attachdbfilename=|datadirectory|fbasic8.mdf;trusted_connection = yes";

thanks jon

hello,

i found thread answered mike wachal

http://social.msdn.microsoft.com/forums/en-us/sqlexpress/thread/2b31e578-03ab-49c4-90be-9cf1fcb3326c

please, try idea ? ( simple prefered retrieve old  thread before post )

i hope you.

don't hesitate more or explanations

have nice day

ps : have suceeded attach database ( ssmsee ) , becomes "normal" database


mark post helpful if provides help.otherwise,leave is.


SQL Server  >  SQL Server Data Access



Comments

Popular posts from this blog

Conditional formatting a graph vertical axis in SSRS 2012 charts

Register with Power BI failed

SQL server replication error Cannot find the dbo or user defined function........