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
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 long wooden peg board with a row of round pegs and one empty hole in the row, a red peg standing just past the gap.

Identity Column Quiz: Why Did My IDs Skip a Number?

January 4, 2012
Pinal Dave
SQL Puzzle
SQL Constraint and Keys, SQL Identity, SQL Table Operation, SQL Transactions

This Identity Column Quiz starts with three rows and one rolled-back insert, then asks what ID the next row gets. The answer is 5, not 4. A tested script proves it and shows two more ways numbers go missing.

Read More
A writing desk by a window with a half-written letter and a red fountain pen resting on it, an empty chair pulled up close.

ANSI Isolation Levels Quiz: Which Level Lets You Read Uncommitted Data?

January 2, 2012
Pinal Dave
SQL Puzzle
Snapshot, SQL Lock, SQL Transactions, Transaction Isolation

This ANSI Isolation Levels Quiz asks which level lets one session read a price that another session has not committed. A two-window test on SQL Server 2025 shows what each level returns. It also shows how READ COMMITTED SNAPSHOT removes the wait.

Read More
An empty basket rack at a shop door, every basket out on the floor, one red basket unused

Diagnosing Connection Pool Exhaustion From the SQL Server Side

December 10, 2011
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL DMV, SQL Server, SQL Transactions

Diagnose connection pool exhaustion by grouping SQL Server sessions, finding sleeping open transactions, and reading their last command.

Read More
A hand checking the red wax seal on a jar of jam before opening it

Lost Updates: Optimistic Concurrency With a rowversion Column

October 18, 2011
Pinal Dave
SQL Tips and Tricks
SQL Lock, SQL Server, SQL Transactions, Transaction Isolation

Prevent lost updates with optimistic concurrency and a rowversion token, detect zero-row conflicts, and compare short locking transactions.

Read More
A hand holds one cloth napkin free of a metal holder while the remaining stack stays inside

Destructive Reads: Pulling Work From a Queue Table With OUTPUT

June 10, 2011
Pinal Dave
SQL Tips and Tricks
Output Clause, SQL Delete, SQL Transactions, Temp Table

Claiming a job and finishing it are two different things. Try a delete claim, a rollback, and an update claim on a tiny queue.

Read More
Comic strip: Casey trades the old booth cards for wristbands, but Jesse still waits on one milkshake party, ending up knitting a long scarf in a lawn chair as Quinn brings a fourth round. Casey says, "Optimized locking, same lesson. Bring the check sooner."

Optimized Locking Wait Stats: New Lock Waits in SQL Server 2025

February 24, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Transactions, SQL Wait Stats

Optimized locking wait stats are the new lock waits SQL Server 2025 records when optimized locking is on. On Night 24 at the Clipboard Diner, a new state code swaps booth cards for wristbands. Then I show what LCK_M_S_XACT_MODIFY and LCK_M_S_XACT_READ mean, how to check the setting, and why a long transaction still hurts.

Read More
Previous 1 … 7 8 9 10 11 12 13 … 15 Next
  • Books
  • Testimonials
  • Privacy Policy

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