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

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -