I am trying to connect to an SQL server 2008 express database with C#. The program compiles with no problems, however when I try to run it, I get the exception: "Format of the initialization string does not conform to specification starting at index 51."
Here is the connection string:
string cnString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\myWork\appLithium\appLithium\\dbAppChem.mdf;Integrated Security=True;User Instance=True";
SqlConnection con = new SqlConnection(cnString);
Format of the initialization string does not conform to specification starting at index 51.
Here is the connection string:
string cnString = "Data Source=.\\SQLEXPRESS;AttachDbFilename=C:\\myWork\appLithium\appLithium\\dbAppChem.mdf;Integrated Security=True;User Instance=True";
SqlConnection con = new SqlConnection(cnString);
Format of the initialization string does not conform to specification starting at index 51.