0
What is the correct syntax of Sqlconnection to connect to a local database? I think it’s something like this!!
SqlConnection liga = new SqlConnection(@"Data Source=(LocalDB)\v11.0;
AttachDbFilename=|DataDirectory|\BaseDeDados.mdf;
Integrated Security=True;
Connect Timeout=30");
to see the connection string syntax, go to: https://www.connectionstrings.com/ and to see the syntax of
SqlConnection
access: https://msdn.microsoft.com/pt-br/library/system.data.sqlclient.sqlconnection(v=vs.110). aspx– Rovann Linhalis