You are not Logged in
Would you like to Login or Register

Today is: 10 February 2012
Check this months hot topics

SQL Server 2005 mdf file Query String

To add a SQL Server 2005 local database to one of your projects, create the connection as follows.

conn = new SqlConnection(@"server=(local)\SQLExpress; AttachDbFileName=|DataDirectory|MyDatabase.mdf; Integrated Security=false; User Instance=false");
conn.Open();
kick it on DotNetKicks.com del.icio.us digg Mister Wong YahooMyWeb Reddit Furl Spurl blogmarks
Barrington Haynes Skype
Author : Barrington Haynes
Published : 14 June 2006

I have nothing more to say :-)

Add Comment

Enter your comment below and it will be submitted for moderation.

Your Name

Add Tag

Please enter tags for this article, seperated by semi-colon ;

View Tag's by : # articles | # views