From time to time my code occurs
System.Data.SqlClient.SqlException The service has encountered an error processing your request. Please try again. Error code 40540. A severe error occurred on the current command. The results, if any, should be discarded. Class 20 Number 40197
what happens very rarely, usually goes away in a minute or two, and I canβt reliably reproduce it. Sometimes the Error code can be a number other than 40540 .
I searched a little Google and it looks like it is caused by errors in SQL Server and is reproducible.
I have two options: repeat the request or treat it as fatal and break it badly. I would rather better understand what the problem really is, and whether I am safe to repeat the request.
Retry the request when this error occurs?
sharptooth Feb 11 '13 at 8:47 2013-02-11 08:47
source share