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
A deckhand seen from behind swinging a mooring rope toward a bollard again after a throw fell short.

A Retry Loop in T-SQL for Deadlock Victims and Lock Timeouts

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

Build a bounded retry loop for deadlock and lock-timeout errors, roll back each failed transaction, and keep diagnostics beside retries.

Read More
SQL Server Deadlocks

SQL SERVER – What is Deadlock Scheduler? How to Reproduce it?

July 29, 2016
Pinal Dave
SQL Performance
Deadlock, SQL Error Messages, SQL Scripts, SQL Server

If you have come on this page by internet search, then you must have seen below error in the ERRORLOG which is about deadlock scheduler.

Read More
Crossed pull cords immobilize the slats of a single Venetian blind

Intra-Query Parallel Deadlock: When One Query Blocks Itself

March 13, 2012
Pinal Dave
SQL Performance
Deadlock, MAXDOP, Parallel, SQL Extended Events

No error, no deadlock graph, just a report that is slow on some runs. Here is a demo where one query deadlocks with itself, and how to fix it.

Read More
Two toy locomotives facing each other nose to nose on one wooden track, one red and one slate blue, neither able to pass.

Blocking and Deadlock Quiz: Which One Ends by Itself?

January 10, 2012
Pinal Dave
SQL Puzzle
Deadlock, SQL Error Messages, SQL Lock, SQL Transactions

This Blocking and Deadlock Quiz asks which problem SQL Server ends on its own, and how the losing session finds out. A two-window test on SQL Server 2025 shows the deadlock error 1205 and the lock timeout error 1222. It also shows how to find a blocker and how to retry.

Read More
A wooden mannequin fallen off its chair laughing at a long paper printout

Funny SQL Server Error Messages and What They Really Mean

September 5, 2007
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Error Messages, SQL Humor, SQL Server

Some real SQL Server error messages read like jokes. Here are my favorite funny SQL Server error messages and what each one is really telling you.

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

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