SQL Server locking doesn't have to be a mystery. In this video, I walk through every lock type — table locks (TABLOCKX), row/key locks, and serializable range locks — with a hands-on demo you can follow along.
We'll set up a blocking chain step by step, then use the DBA Studio inside MoPulse to:
• Instantly see the full blocking tree (who blocks whom, and why)
• Investigate any session — see the exact table, index, and lock mode it's holding
• Generate ready-to-run KILL commands with one click
What's covered:
— Setup: Create the demo table (tempdb.dbo.LockDemo)
— Exclusive table lock (TABLOCKX + HOLDLOCK)
— Row-level key lock (UPDATE single row)
— Serializable range lock (phantom prevention)
— Blocked readers & writers pile up
— Diagnosing with Recursive Blocking Hierarchy
— One-click Investigation: table name, index, lock mode
— Resolution: Kill vs Wait vs Optimize
This is part of reactive maintenance — the queries and workflow a DBA uses when blocking is happening RIGHT NOW and users are waiting.
MoPulse DBA Studio is in Early Access.
🔗 Try it: https://muulorigin.com/MoPulse/
📄 Lab queries: https://github.com/yogimehla/PublicLi...
#SQLServer #DBA #Locking #Blocking #DatabasePerformance #ReactiveMaintenance