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
Several mortar and pestle sets divide one herb batch beside a crowded single mortar

Page View Counters: Avoiding Hot Row Contention on Busy Rows

May 16, 2013
Pinal Dave
SQL Tips and Tricks
SQL Counter, SQL Lock, SQL Server

One counter row means every visitor waits in line. See how buckets spread the locks, and why rows on one page can still crowd each other.

Read More
Several hands reaching into a crate of oranges, each taking a different one, one hand passing over a held orange.

UPDLOCK and READPAST for Queue Tables

April 22, 2013
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Lock, SQL Server, SQL Transactions

UPDLOCK and READPAST let SQL Server queue workers claim different rows safely when transactions, retries, and completion rules are designed.

Read More
A row of garden gates swinging free, one red gate still latched

Optimized Locking in SQL Server 2025: What Changes for Blocking

February 15, 2013
Pinal Dave
SQL Performance
SQL Lock, SQL Performance, SQL Server, Transaction Isolation

Enable optimized locking in SQL Server 2025 with ADR and RCSI, then compare lock counts and blocking while checking LAQ limits.

Read More
SQL SERVER - Difference Between NOLOCK and NOWAIT Hints

SQL SERVER – Difference Between NOLOCK and NOWAIT Hints

February 1, 2013
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Lock, SQL Scripts, SQL Server

Should you use NOLOCK when NOWAIT errors out on a lock? Here is the difference between NOLOCK and NOWAIT, and why neither guarantees a valid answer.

Read More
Set lock timeout' dialog window.

SQL SERVER – Basic Explanation of SET LOCK_TIMEOUT – How to Not Wait on Locked Query

January 28, 2013
Pinal Dave
SQL Performance
Query Hint, SQL Lock

SET LOCK_TIMEOUT works at the connection level, like the NOWAIT hint does for a query. I show how setting it to 0 stops a query from waiting on a lock.

Read More
SQL Server Query Execution Plan.

SQL SERVER – Basic Explanation of Query Hint NOWAIT – How to Not Wait on Locked Query

January 25, 2013
Pinal Dave
SQL Performance
Query Hint, SQL Lock

Everybody knows NOLOCK, but not everyone knows NOWAIT. A question at a Bangalore User Group session led me to explain how NOWAIT skips waiting on a lock.

Read More
Gouache painting: a deep stone well with one wooden bucket lowered on its rope, the rope tied off with a vermilion knot, while two empty buckets wait in a line on the well rim behind it

sys.dm_os_waiting_tasks: Who Is Waiting Right Now and Why

November 23, 2012
Pinal Dave
SQL Performance
SQL DMV, SQL Lock, SQL Monitoring, SQL Wait Stats

sys.dm_os_waiting_tasks shows every task that waits right now, what it waits for and who is in the way. This post builds a three-session blocking chain on SQL Server 2025, reads the view, finds the head of the chain and names the locked table.

Read More
Previous 1 2 3 4 5 6 7 8 9 Next
  • Books
  • Testimonials
  • Privacy Policy

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