put @ berore connection string
Happy Coding
string strcon = "Data Source=PURU\\SQLSERVER2005; uid=sa; password=; Initial Catalog=Data";
string strcon = @"Data Source=PURU\SQLSERVER2005; uid=sa; password=; Initial Catalog=Data";
I get that error message when trying to compile a program which connects to a database. I think the error is with the following line:
string strcon = "Data Source=PURU\SQLSERVER2005; uid=sa; password=; Initial Catalog=Data";