Rugjrh
❔ DataBaseProblem
Hi Guys!
I have this code when I try to make my db connection:
SqlConnection con;
public MainForm()
{
InitializeComponent();
con = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True");
con.Open();
}
But my app doesn't run. What's the problem? I'm a beginner in SQL.
52 replies