how to check database deadlock in sql server code example Example: mssql find deadlocks --[status] EXEC sp_whoisActive;