ShowWaitingLocks



Shows the processes that are currently blocked waiting for a lock, optionally for a single process.

ShowWaitingLocks(Numeric processId = null)

Permissions

Requires an account that is a member of an administrator role.


    • ProcessId - the process that is waiting.
    • Granularity - the kind of object it is waiting to lock.
    • Operation - the kind of lock: Read, Write, Delete, Stability.
    • Wait Time (ms) - how long it has been waiting.
    • Object Name - the object it is waiting to lock.


round-pushpin Shows all waiting locks.
EXEC ShowWaitingLocks

round-pushpin Shows the waiting locks of process 1.
EXEC ShowWaitingLocks(1)