Capturing historical blocking with the blocked process threshold and the blocked_process_report Extended Events event, and reading the blocked and blocking process sections.
The blocked process report is an Extended Events (or trace) event raised when a session has waited on a lock longer than the blocked process threshold. On SQL Server it is off until you enable it: sp_configure 'blocked process threshold (s)', 15; RECONFIGURE; then capture sqlserver.blocked_process_report in an XE session to a file target. In Azure SQL Database you create a database-scoped XE session; the threshold is managed by the platform. Each report documents both sessions: the blocked-process section (the waiter) and the blocking-process section (the cause). Read waitresource (what is locked), isolationlevel (serializable or repeatable read holds locks longer), trancount, status (sleeping means an app left a transaction open) and inputbuf (the last statement each session sent). It turns 'it was slow at 2 am' into evidence, at the cost of a small, continuous XE overhead.
Checks the candidate can capture blocking that has already ended, not only live incidents.
Last updated 23 Nov 2026.