automatic tool to detect deadlock in database code example Example: mssql find deadlocks --[status] EXEC sp_whoisActive;