Microsoft® SQL Server™ 2005 Administrator's Companion
by Edward Whalen, Marcilina Garcia, Burzin Patel, Stacia Misner, Victor Isakov
Blocking and Deadlocks
Blocking and deadlocks are two events that can occur with concurrent transactions. Sometimes they are desirable because they help maintain data consistency, and sometimes they are not desirable because of possible performance degradation for users. Blocking and deadlocks both relate to locking.
Blocking occurs when one transaction is holding a lock on a resource and a second transaction requires a conflicting lock type on that resource. The second transaction must wait for the first transaction to release its lock—in other words, it is blocked by the first transaction. If a transaction holds a lock for an extended period, it can cause a chain of blocked transactions that are waiting for the first transaction to finish so ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access