I am trying to call the stored procedure using C#.
I am facing problem in the following line.
SqlConnection(\"Server=DB2\\XPT;DataBase=SCFHP_EDI_P1;
You need to escape the backward slash \
in your connection string or use the @
symbol if you want to avoid escaping characters in your string.
Read more about it on MSDN.
SqlConnection(@"Server=DB2\XPT;DataBase=SCFHP_EDI_P1;Integrated Security=SSPI");
SqlConnection("Server=DB2\\XPT;DataBase=SCFHP_EDI_P1;Integrated Security=SSPI");
("Server=DB2\\XPT;DataBase=SCFHP_EDI_P1;Integrated Security=SSPI");
or
(@"Server=DB2\XPT;DataBase=SCFHP_EDI_P1;Integrated Security=SSPI")