connectionstring "/"
-
When T try to write connectionstring I have error with c# connectionstring: code C# con.ConnectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Test;Data Source=HASSAN-2D6107E7\SQLEXPRESS"; error message :Error 1 Unrecognized escape sequence but when try to use the same connection string using vb.net no error why dose not c# support "/"?
Ahmed hassan
-
When T try to write connectionstring I have error with c# connectionstring: code C# con.ConnectionString="Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Test;Data Source=HASSAN-2D6107E7\SQLEXPRESS"; error message :Error 1 Unrecognized escape sequence but when try to use the same connection string using vb.net no error why dose not c# support "/"?
Ahmed hassan
hassanasp wrote:
why dose not c# support "/"?
It looks like '\' is the problem, not '/'. Maybe try con.ConnectionString=
@
"Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Test;Data Source=HASSAN-2D6107E7\SQLEXPRESS"; *edit* More info: C# String Literals[^] MarkMark Salsbery Microsoft MVP - Visual C++ :java:
modified on Wednesday, December 3, 2008 12:17 PM