Home > DeveloperSection > Forums > MS SQL SERVER 2008r2 connection with Visual studio 2012
Ankit Singh

Total Post:341

Points:2389
Posted on    December-09-2013 11:28 PM

 C# C# 
Ratings:


 1 Reply(s)
 875  View(s)
Rate this:

SqlConnection con = new SqlConnection("Data source=BIMESH-PC\SQLEXPRESS;initial catalog=LibrSystem;integrated security=true");

In this code the escape sequence is not acceptable.....

please rectify this code....



ezra heywood
ezra heywood

Total Post:145

Points:1019
Posted on    December-10-2013 12:14 AM

Hi Ankit,

You could try either

SqlConnection con = new SqlConnection(@"Data source=BIMESH-PC\SQLEXPRESS;initial catalog=LibrSystem;integrated security=true");

SqlConnection con = new SqlConnection("Data source=BIMESH-PC\\SQLEXPRESS;initial catalog=LibrSystem;integrated security=true");


Don't want to miss updates? Please click the below button!

Follow MindStick