SQL Server: 8 different ways to Detect a DeadLock in a Database

In the previous post, I shared T-SQL script to generate a DeadLock situation in SQL Server Database. In this post, I am sharing different scripts to detect a Deadlock in SQL Server. 1. Using SP_LOCK, you can find the WAIT status for blocking sessions: [crayon-67ed30c879dc0791858887/] 2. Using sys.sysprocesses: [crayon-67ed30c879dc9229447989/] 3. Using common DMV: [crayon-67ed30c879dcb562420486/] 4. … Continue reading SQL Server: 8 different ways to Detect a DeadLock in a Database