We have same SQL Scripts to try to find out about what it happens when we have or had deadlocks.
- Get current running commands.
- Create event to find blocked processes and deadlocks.
How to isolate the current running commands in SQL Server
How To Monitor Deadlocks in SQL Server
A very quick guide to deadlock diagnosis in SQL Server
Finding Blocked Processes and Deadlocks using SQL Server Extended Events