The information in this article applies to:
SUMMARYA deadlock is a condition where 2 (or more) processes attempt to access a resource that the other holds a lock on. Since each process has a request for the other's resource, neither process can be completed. When a deadlock is detected, SQL Server will rollback the command that has the least processing time and return a 1205 message to the application. However, a 1205 error is not fatal and may not cause the batch to be terminated. MORE INFORMATION
In some instances, a deadlock condition will cause a DB-Library (DB-Lib)
command (such as dbsqlexec, dbsqlok, or dbresults) to return FAIL. It is
always the responsibility of the program to check the return codes from
each DB-Lib command. If FAIL is returned by one of these DB-Lib commands,
the program should cancel the batch and not attempt to continue. In some
cases, it is possible to continue execution of subsequent commands in the
batch. However, because a deadlock situation occurred and the command that
caused it was rolled back, later commands in the batch will probably fail
with a more serious error, such as an object not found.
Additional query words: DB-Library deadlock Windows NT dblib
Keywords : kbprg SSrvDB_Lib SSrvWinNT |
Last Reviewed: March 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |