Click here to Skip to main content
16,018,818 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am facing a problem when I declare datasource=.\sqlexpress" in connection string in C # 2008 in debugging it gives error
"unrecognized escape sequence" I am using SQL server 2005
Posted
Comments
Sandeep Mewara 3-Jul-10 16:43pm    
Are you setting it through code or just defined in the config file?

1 solution

This might have something to do with the "\" character if you are setting a connetion string through the source code.
Just try @"datasource=.\sqlexpress" instead.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900