Ashen_Boy
New member
- Joined
- Sep 27, 2022
- Messages
- 3
- Programming Experience
- Beginner
I'm coding project Using MS Visual Studio 2017 to enter data to sql Database. when i'm publish the project to another pc its can't connection to sql database show error like image below . the connection string =
SqlConnection conn = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|Car_db.mdf;Integrated Security=True");
C#
SqlConnection conn = new SqlConnection(@"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|Car_db.mdf;Integrated Security=True");