diagnose-blocking-and-deadlocks

Installation
SKILL.md

Diagnose blocking and read a deadlock on Azure SQL Database

Two empty results, two different causes, and the fix for one does nothing for the other. The blocking DMVs answer only as far as the login's grant reaches. Extended Events does not work the way SQL Server taught you: Microsoft Learn states there is no built-in system_health session in Azure SQL Database and that sessions are database-scoped, so nothing captured your deadlock unless someone built a session first.

What you see Cause Fix
one row, blocking_session_id = 0, no error, while a real chain runs the login cannot see past its own session section 1, and which grant depends on the service objective
Msg 208, Invalid object name 'sys.dm_xe_sessions' there are no server-scoped Extended Events views here section 5. No grant and no master produces them

No permission moves the second one: VIEW SERVER STATE cannot be granted in Azure SQL Database at all.

Installs
11
GitHub Stars
23
First Seen
Sep 28, 2026