how to check if a database is deadlocked code example Example: mssql find deadlocks --[status] EXEC sp_whoisActive;