Incomplete transaction may hold large number of locks and case blocking (295108)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
- Microsoft SQL Server 7.0
- Microsoft SQL Server 6.5
- Microsoft SQL Server 2005 Standard Edition
- Microsoft SQL Server 2005 Developer Edition
- Microsoft SQL Server 2005 Enterprise Edition
- Microsoft SQL Server 2005 Express Edition
- Microsoft SQL Server 2005 Workgroup
This article was previously published under Q295108 SUMMARY When a transaction is not completed either because a query
times out or because the batch is cancelled in the middle of a transaction
without issuing a COMMIT or ROLLBACK statement to complete the transaction, the
transaction is left open and all the locks acquired during that transaction
continue to be held. Subsequent transactions executed under the same connection
are treated as nested transactions, so all the locks acquired in these
completed transactions are not released. This problem repeats with all the
transactions executed from the same connection until a ROLLBACK is executed. As
a result, a large number of locks are held, users are blocked, and transactions
are lost, which results in data that is different from what you expect.
Modification Type: | Minor | Last Reviewed: | 12/23/2005 |
---|
Keywords: | kbinfo KB295108 kbAudDeveloper |
---|
|