How to find which tables are causing deadlocks in sql code example Example: mssql find deadlocks --[status] EXEC sp_whoisActive;