Posted on: 7/29/2014 2:15:58 PM | Views : 481

I'm running Visual Studio 2008 Standard on a Windows 8 machine and am creating a WINDOWS FORM in C#.
I have installed SQL Server Express 2014.
I have created an SQL database named "newMedsSQL" and it is stored in the following path:
c:\\Program Files (x86)\\Microsoft SQL Server\\MSSQL10.SQLEXPRESS\\MSSQL\DATA\\
The server name is ASUS\SQLEXPRESS
I'm using the following connection string:
string mySQLConnectionString =
"Data Source=.\\ASUS\\SQLEXPRESS;AttachDbFilename=c:\\Program Files (x86)\\Microsoft SQL Server\\MSSQL10.SQLEXPRESS\\MSSQL\\DATA\\newMedsSQL.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True";
Go to the complete details ...