static string directory = Path.GetDirectoryName(Application.ExecutablePath); SqlConnection Con = new SqlConnection("Data Source=(LocalDB)\\v11.0;AttachDbFilename=" + directory + "\\Database.mdf;Integrated Security=True");
Public conStr As String = "Data Source=.\SQLEXPRESS;" & _ "AttachDbFilename=|DataDirectory|\Database.mdf;" & _ "Integrated Security=True;User Instance=True"
(LocalDB)\\v11.0
SqlConnection Con = new SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;UserInstance=True");
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)