D
Drew
I am updating some tables and once in while the updates
are timing out. When a SQLException is thrown I catch it
and would like to check it if it is a TIME_OUT exception
and if it is try to do the update at a later time.
I am catching the exception and I get the error number.
But the only way to find out if the execution timed out is
by looking up the exception message for "Timeout expired."
phrase in it.
Is there a way to differentiate the time out error from
the others without having to lookup the exception message.
In C++ code I remember doing something like if number =
SQL_TIME_OUT. Is there any similar option in ADO.NET.
Thanks and appreciate your help.
Drew
are timing out. When a SQLException is thrown I catch it
and would like to check it if it is a TIME_OUT exception
and if it is try to do the update at a later time.
I am catching the exception and I get the error number.
But the only way to find out if the execution timed out is
by looking up the exception message for "Timeout expired."
phrase in it.
Is there a way to differentiate the time out error from
the others without having to lookup the exception message.
In C++ code I remember doing something like if number =
SQL_TIME_OUT. Is there any similar option in ADO.NET.
Thanks and appreciate your help.
Drew