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

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -