Hello everyone,
I'm just having a problem that is stopping me from doiing my work and I've tried fixing it. I don't know what's really wrong with what I've got typed in visual studio.
string connString = @"Data Source=.\SQLEXPRESS;AttachDbFilename='C:\..................\Database1.mdf'; Integrated Security=True; User Instance=True";
SqlConnection conn = new SqlConnection();
conn.ConnectionString = connString;
conn.Open();
--- > the word "conn" is underlined in visual studio so this means that I cannot connect to the BD I created. I have got my DB in my service section instead of having in my application.
Your help is very much appreciated.