Find blocking processes using recursion in SQL Server 2005

Tuesday Jan 29th 2008 by DatabaseJournal.com Staff

SQL Server 2005 has several system tables and views that can provide a ton of insight into blocking problems that you may be facing in your database environment. Through these procedures, you can find blocking chains.

[From TechRepublic]

Blocking occurs in SQL Server 2005 when one process has one or more records locked, while another process tries to acquire locks on the same set (or subset) of records. This causes the second process to wait until the first process is done so it can acquire the records; this can cause other processes to be blocked if they are waiting on the resources that the second connection has acquired. These processes are ultimately dependent upon the first process to complete its work before they can complete theirs. This can create a daisy-chain of processes waiting to complete their work.

The article continues at http://blogs.techrepublic.com.com/datacenter/?p=275

Mobile Site | Full Site