Identifying blocking processes (lead blocker)

Posted on June 17, 2009 by Derek Dieter

Finding the lead blocker in a chain of blocks is a difficult challenge when using sp_who2. There are also a lot of detect blocking scripts that I have run in production environments that seem to block things themselves.

Probably the most efficient way to detect blocks is to query sysprocesses. The following script displays the lead blocker in a chain of blocks:

Views – 1817

Leave a Reply