3
Reply

Error CS1009: Unrecognised escape sequence

Purushottam Rathore

Purushottam Rathore

Apr 09, 2009
7.6k
0

    put @ berore connection string

    Happy Coding

    Dhananjay Kumar
    April 09, 2009
    0

    string strcon = "Data Source=PURU\\SQLSERVER2005; uid=sa; password=; Initial Catalog=Data";

    string strcon = @"Data Source=PURU\SQLSERVER2005; uid=sa; password=; Initial Catalog=Data";

    Purushottam Rathore
    April 09, 2009
    0

    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";

    Purushottam Rathore
    April 09, 2009
    0