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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -