sql server error log deadlock code example Example: mssql find deadlocks --[status] EXEC sp_whoisActive;