check-live-blocking
Check Live Blocking Sessions
Azure SQL Database specialization
For Azure SQL Database (EngineEdition 5), read Azure-specific guidance before choosing diagnostic queries. It preserves the service-specific permissions, capture limitations and error interpretation. Keep this skill's scope and authorization rules; the reference is not a second workflow to run unconditionally.
Visibility, graph and historical evidence
Establish the caller's visibility before interpreting an empty DMV result. Limited database-scoped state permissions can hide other sessions without an error. A sleeping transaction owner may be missing from sys.dm_exec_requests; join sessions and connections separately.
Build blocked-session → positive-blocker edges. A head blocks others but is not itself blocked; intermediate blockers are not heads. Detect cycles and missing endpoints, and count distinct downstream sessions rather than parallel waiting tasks. Negative blocking codes are not session IDs. Optimized-locking XACT waits require transaction-ID interpretation, not a KEY/PAGE parser. Follow incident evidence rules and report unknowns when the snapshot is incomplete.
For completed Azure deadlocks, hand off to deadlock-analysis-azuresql. Azure SQL Database does not provide SQL Server's server-scoped system_health history; a past graph needs a capture that was already active. A new database-scoped XE capture can investigate the next occurrence, subject to authorization. Diagnostic access never authorizes KILL or plan forcing.