This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
detecting deadlocks

Detecting Deadlocks in SQL Server Using Trace Flags 1204 and 1222

June 20, 2023
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Error Messages, TraceFlags

Well, let us discuss Detecting Deadlocks in SQL Server Using Trace Flags 1204 and 1222. T-SQL for enabling, disabling, and checking the status of these trace flags.

Read More
SQL Server Deadlocks

Understanding SQL Server Deadlocks: A Beginner’s Guide

June 19, 2023
Pinal Dave
SQL Performance
Deadlock, SQL DMV

Welcome to this introductory blog post on SQL Server Deadlocks. In this post, we’ll help you understand what deadlocks are, and how they occur.

Read More
Gouache painting of two goats meeting on a narrow bridge with a small vermilion passing platform added to its side

Deadlock Victim Selection: Protect One Transaction

June 24, 2020
Pinal Dave
SQL Performance
Deadlock, SQL Lock, SQL Server Configuration, SQL Stored Procedure

Deadlock victim selection decides which of two blocked transactions SQL Server rolls back. This post shows the rules, sets DEADLOCK_PRIORITY on one procedure, reproduces a deadlock with two query windows, and shows what the setting cannot do. It ends with the two fixes that remove the deadlock itself.

Read More
Two hands across a table, one holding salt and one holding a red pepper shaker, each reaching for the other's.

Reading Deadlock Graphs From the system_health Session

March 24, 2020
Pinal Dave
SQL Performance
DBA, Deadlock, SQL Extended Events, SQL Lock

Read deadlock graphs from system_health, identify victims and resource owners, reproduce a two-session cycle, and choose a targeted fix.

Read More
Three linked case clasps form a closed dependency cycle beside a separate release wedge.

SQL SERVER – A Brief History of Deadlock and Modern Approach of Resolution

April 2, 2019
Pinal Dave
SQL Performance
Deadlock, Quest, Webinar

A deadlock investigation needs the graph and cooperation between DBAs and developers. I distinguish a blocking wait from a cyclic dependency.

Read More
System Health Extended Events.

SQL SERVER – How to get historical deadlock Information from System Health Extended Events?

January 9, 2017
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Error Messages, SQL Extended Events, SQL Scripts, SQL Server

Let me start off by asking a simple question. How many of you have seen this error about historical deadlock information earlier?

Read More
Two small cars nosing into the same single empty parking space on a cobbled street from opposite directions.

Upsert Patterns in SQL Server Without Race Conditions

August 11, 2016
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Lock, SQL Server, SQL Transactions

Compare upsert patterns under concurrent calls, protect missing-key ranges, test MERGE with HOLDLOCK, and keep unique keys as a guard.

Read More
Previous 1 2 3 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com