Skip to content

Error in connection string(SQLEXPRESS)

prabhu raj

Asked Apr 18, 2008, 6:38 PM EDT1 answer
Share
LinkedInX

"Datasource=xx\SQLEXPRESS; Initial catalog = xx;Intergrated security=True";


while connecting my SQLEXPRESS database iam getting a error in connection string:"Unrecognized escape sequence"

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • 0

    try this one......

    -> in the default data folder

    connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf"

    -> in an absolute path

    connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\NewMembershipProvider\App_Data\Members.mdb;Persist Security Info=False"

    0