R
Rob Miller
Hi Folks,
I have a CLR Trigger that calls a web service [see code below]. When I
execute using the uncommented line, that passes a string literal, the web
service executes without error. When I run the code as is, I get an exception
in my web service about a SQL timeout, specifically:
"System.Data.SqlClient.SqlException: Timeout expired. The timeout period
elapsed prior to completion of the operation or the server is not
responding." Considering I only change this one line, I'm not believing a
real timeout is happening.
My guess was that my third parameter was being passed by reference and the
web service couldn't retrieve the value. I changed my web service to VB.net
and specified ByVal but that didn't work. I tried unboxing the value before
passing to the web service but that didn't work either.
Any ideas? I'll I'm doing is flipping between these two lines of code to
generate that exception.
while (sqlRdr.Read())
{
ws.ExecSQL(WebServiceConnection, WebServiceProcedure, (string)sqlRdr[0]);
//ws.ExecSQL(WebServiceConnection, WebServiceProcedure, "x");
}
I have a CLR Trigger that calls a web service [see code below]. When I
execute using the uncommented line, that passes a string literal, the web
service executes without error. When I run the code as is, I get an exception
in my web service about a SQL timeout, specifically:
"System.Data.SqlClient.SqlException: Timeout expired. The timeout period
elapsed prior to completion of the operation or the server is not
responding." Considering I only change this one line, I'm not believing a
real timeout is happening.
My guess was that my third parameter was being passed by reference and the
web service couldn't retrieve the value. I changed my web service to VB.net
and specified ByVal but that didn't work. I tried unboxing the value before
passing to the web service but that didn't work either.
Any ideas? I'll I'm doing is flipping between these two lines of code to
generate that exception.
while (sqlRdr.Read())
{
ws.ExecSQL(WebServiceConnection, WebServiceProcedure, (string)sqlRdr[0]);
//ws.ExecSQL(WebServiceConnection, WebServiceProcedure, "x");
}