Connecting to a SQL Server database with C# -
i find out connection string create wizardless connection sql server database, don't know it, question can find sql version example sqlexpress
, application.startuppath
in visual studio folders, can copy database path, better method appreciated, below string connection presented :
data source=.\\sqlexpress;attachdbfilename=\""+application.startuppath+"\\my_database_name.mdf\";integrated security = true; connect timeout=30;user instance = true";
Comments
Post a Comment