SQL Server: Deadlock Analysis and Prevention
Learn how to analyze and prevent troublesome deadlocks that can occur in SQL Server, applicable for developers, DBAs, and anyone who uses SQL Server from SQL Server 2005 onwards
Authored by:
Jonathan Kehayias
Duration: 2h 37m
Level: Intermediate
Released: 10/18/2012
Features:
Duration: 2h 37m
Level: Intermediate
Released: 10/18/2012
Features:
Course Rating:
You are currently not signed in. Please sign in to access subscriber-only content.
Currently using: {{getCurrentPlayerName()}} [Change]
| expand all | collapse all | Progress | Duration | |
|---|---|---|---|
Introduction |
|
00:06:58 | |
|
Introduction
|
|
01:50 | |
|
Misconceptions
|
|
02:52 | |
|
Course Structure
|
|
02:16 | |
Locking Overview |
|
00:23:21 | |
|
Introduction
|
|
02:24 | |
|
Terminology
|
|
01:43 | |
|
Lock Granularity
|
|
02:48 | |
|
Lock Hierarchy
|
|
00:56 | |
|
Shared and Update Locks
|
|
02:34 | |
|
Exclusive and Intent Locks
|
|
02:50 | |
|
Schema and Key-Range Locks
|
|
02:19 | |
|
Lock Compatibility
|
|
02:07 | |
|
Isolation Levels and Locking Hints
|
|
01:52 | |
|
Lock Escalation
|
|
02:06 | |
|
Summary
|
|
01:42 | |
Deadlock Detection |
|
00:11:50 | |
|
Introduction
|
|
01:36 | |
|
Deadlock Detection
|
|
02:49 | |
|
Deadlock Priority
|
|
03:18 | |
|
Deadlock Victim Selection
|
|
02:05 | |
|
Deadlock Resolution in SQLCLR
|
|
01:13 | |
|
Summary
|
|
00:49 | |
Collecting Deadlock Information |
|
00:25:22 | |
|
Introduction
|
|
01:32 | |
|
Trace Flags
|
|
02:38 | |
|
Demo: Trace Flags
|
|
01:39 | |
|
SQL Trace and Profiler
|
|
02:19 | |
|
Demo: SQL Trace and Profiler
|
|
01:35 | |
|
Event Notifications
|
|
02:25 | |
|
Demo: Event Notifications
|
|
01:33 | |
|
Windows Management Instrumentation
|
|
01:47 | |
|
Demo: Windows Management Instrumentation
|
|
03:02 | |
|
Extended Events
|
|
02:59 | |
|
Demo: Extended Events
|
|
01:23 | |
|
Summary
|
|
02:30 | |
Deadlock Analysis |
|
00:20:21 | |
|
Introduction
|
|
01:24 | |
|
Deadlock Graph Sections
|
|
01:52 | |
|
Demo: Deadlock Graphs
|
|
03:40 | |
|
Interpreting the Information
|
|
03:25 | |
|
Graphical Display in Profiler/SSMS
|
|
02:19 | |
|
Demo: Graphical Display
|
|
02:28 | |
|
Third-party Tools
|
|
01:46 | |
|
Demo: Third-party Tools
|
|
02:15 | |
|
Summary
|
|
01:12 | |
Example Deadlock Scenarios |
|
00:51:44 | |
|
Introduction
|
|
02:10 | |
|
Reverse Object Order Deadlocks
|
|
01:34 | |
|
Demo: Reverse Object Order Deadlocks
|
|
04:10 | |
|
Bookmark Lookup Deadlocks
|
|
02:54 | |
|
Demo: Bookmark Lookup Deadlocks
|
|
02:52 | |
|
Serializable Deadlocks
|
|
02:33 | |
|
Demo: Serializable Deadlocks
|
|
03:28 | |
|
Cascading Constraint Deadlocks
|
|
01:31 | |
|
Lock Escalation Deadlocks
|
|
01:57 | |
|
Demo: Lock Escalation Deadlocks
|
|
04:11 | |
|
Memory Grant Deadlocks
|
|
03:20 | |
|
Intra-Query Parallelism Deadlocks
|
|
02:22 | |
|
Multi-Victim Deadlocks
|
|
02:37 | |
|
Demo: Multi-Victim Deadlocks
|
|
04:38 | |
|
Resolving Deadlocks
|
|
02:59 | |
|
Demo: Resolving Deadlocks
|
|
06:55 | |
|
Summary
|
|
01:33 | |
Handling Deadlocks |
|
00:18:17 | |
|
Introduction
|
|
01:26 | |
|
Catching Deadlock Errors
|
|
01:00 | |
|
Demo: Catching Deadlock Errors
|
|
06:19 | |
|
Retrying After a Deadlock
|
|
01:31 | |
|
Demo: Retry Logic
|
|
06:38 | |
|
Summary
|
|
01:23 |
Introduction