Hello, I am coding an web service factory application.
In service implementation code I am trying to pass a domain and user to a stored procedure on a SQL Server 2005 Database.
The problem is I cannot get c# to NOT add the extra "\"
cmd.CommandText = @"exec dbo.spWorldCloc kGetTimezones DS\john.doe";
I tried even hardcoding to get the process to work - in the above example I am still seeing "...DS\\xxxx.xx x" when I click on the variable during code execution.
I am able to take code and manually run it on the SQL Server.
I also tried using SQLParameter and adding a parameter - but did not seem to work - I thought the "@" was supposed to force a literal view of the string.
Any ideas would be appreciated!
In service implementation code I am trying to pass a domain and user to a stored procedure on a SQL Server 2005 Database.
The problem is I cannot get c# to NOT add the extra "\"
cmd.CommandText = @"exec dbo.spWorldCloc kGetTimezones DS\john.doe";
I tried even hardcoding to get the process to work - in the above example I am still seeing "...DS\\xxxx.xx x" when I click on the variable during code execution.
I am able to take code and manually run it on the SQL Server.
I also tried using SQLParameter and adding a parameter - but did not seem to work - I thought the "@" was supposed to force a literal view of the string.
Any ideas would be appreciated!
Comment