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
NOLOCK Double Counting: One Employee, Two Lunches

NOLOCK Double Counting: One Employee, Two Lunches

September 22, 2026
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Index, SQL Lock, SQL Transactions

NOLOCK double counting is how three people in a lunch line turn into four lunches. Nothing was inserted. One row moved ahead of the scan and got read twice. I tested it on SQL Server 2025 and share a query that catches it on your own table.

Read More
Gravel path illuminated at night.

Your Index Rebuild Maintenance Plan Is Rebuilding Indexes Nobody Uses

September 17, 2026
Pinal Dave
SQL Performance
Maintenance Plan, SQL Index, SQL Statistics

Your index rebuild maintenance plan takes four hours every Sunday, fills the log and delays the backup. It may be buying you far less than everybody assumes.

Read More
The same four pages. A row moves from page 4 into the empty slot on page 1 after the scan has passed, page 1 ends with four rows that were counted as three, and the query answers 11

NOLOCK: Why It Counts Some Rows Twice and Misses Others

September 4, 2026
Pinal Dave
SQL Performance
SQL Index, SQL Lock

Everybody knows NOLOCK can show uncommitted data. Far fewer know why it counts some rows twice and misses others, with nothing rolled back. Let me show you.

Read More
A library clerk filing one card into seven identical catalogues while a reader walks away with the exact book they wanted in a single step.

I Let AI Recommend SQL Server Indexes Across a Week of Queries

August 28, 2026
Pinal Dave
SQL Performance
AI, SQL Index

I let AI recommend SQL Server indexes across a week of queries, measured every number before and after, and the result was not the one I expected to write about.

Read More
Title card for eleven SQL Server interview questions that look far too easy

Eleven SQL Server Interview Questions That Look Far Too Easy

August 20, 2026
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, SQL Index, SQL Performance

These eleven SQL Server interview questions look far too easy, and every one of them has stopped somebody senior.

Read More
A dense grid of small tiles representing hundreds of SQL Agent jobs, colour coded into four categories, with most tiles grey for dead and a small cluster in red for failing silently

Nine Unusual Ways My Clients Use AI With SQL Server

August 6, 2026
Pinal Dave
AI
Oracle, SQL Index, SQL NULL, SQL Performance

Everyone writes about AI generating queries. Here are nine unusual ways my clients use AI with SQL Server, and I helped build every one.

Read More
Consultant and Robot on Fire.

Hire AI and Not Me: Human Can Make Mistakes

February 25, 2026
Pinal Dave
AI
AI, Comprehensive Database Performance Health Check, SQL Index

Let me tell you something that took me a long time to say out loud. Human Can Make Mistakes Not AI. (Well, line inspired from famous GenAI tool).

Read More
1 2 3 4 … 53 Next
  • Books
  • Testimonials
  • Privacy Policy

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