|
|
Browse by Tags
All Tags » Error Handling » T-SQL (RSS)
-
After timeouts we need to make sure that active transactions, if any, are rolled back. All timeout handling must be done on the client. This post provides the implementation and unit tests.
Implementation
The following class extends SqlCommand and rolls back active transactions after timeouts:
public static class ...
-
After the timeout, we may sometimes, but not always, end up with an outstanding transaction. If this is the case, we need to rollback the transaction ourselves. Otherwise the consequent commands which use the same connection might not work as expected.
Let us debug through some client code and see what is happening in more ...
|
|
|
|