sql query to find deadlocks code example Example: mssql find deadlocks --[status] EXEC sp_whoisActive;