July 3, 2010 at 11:47 am
I am facing a problem in declaring connection string in datasource I write".\sqlserver"
but in debugging error come
"unrecognized escape sequence"
I am using sqlserver 2005 and C # .net 2008
July 3, 2010 at 12:16 pm
c# uses double slashes to escape and mean a regular slash; it is interpreting \s to be a special char that doesn't exist; is new line, \t is tab, you can look it up all the escapes with google.
a drive path might be c:\\program Files\\Adobe Acrobat\\blah.exe to use in C#.
so your server name needs to be escaped the same way... machinename\\instancename, like Lowell\\SQLExpress.
Lowell
July 3, 2010 at 12:34 pm
thank u for the help it works
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply