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
NOLOCK Can Miss Rows: The Order That Was Never Missing

NOLOCK Can Miss Rows: The Order That Was Never Missing

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

Yes, NOLOCK can miss rows. A row can vanish from your report while it sits safely in the table. Nobody deleted it. The read simply walked past it.

Read More
UPDATE Without WHERE, SQL in Sixty Seconds episode 211, featuring Dex and Mia.

UPDATE Without WHERE Clause: The Day Everyone Got a Raise

September 8, 2026
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Server, SQL Transactions

An UPDATE without WHERE clause changed 8,432 salaries. When ROLLBACK can help, and how to check the affected row count before COMMIT.

Read More
A hand tying small parcels into equal bundles with vermilion string in a post office loading bay.

BULK INSERT Batch Size and ROWS_PER_BATCH

September 1, 2024
Pinal Dave
SQL Tips and Tricks
Batch, CSV, SQL Log, SQL Server, SQL Transactions

Distinguish ROWS_PER_BATCH estimates from BULK INSERT commit batches, then review logging, locks, rejected rows, and atomic loading.

Read More
deadlock priority

SQL SERVER – Setting Deadlock Priority to Control the Transaction that is Rolled Back

June 29, 2023
Pinal Dave
SQL Performance
Deadlock, SQL Transactions

In this article, we will explore Setting Deadlock Priority to Control the Rolled Back Transaction. Let us explore more in this blog post.

Read More
Gouache painting of a seedling in a small pot beside a tall grown tree with a vermilion watering can between them

Implicit Transactions in SQL Server: The Setting That Leaves Work Open

May 23, 2023
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL DMV, SQL Lock, SQL Transactions

Implicit transactions make SQL Server open a transaction on the first data statement and keep it open until a COMMIT or ROLLBACK. This post shows what starts one, how @@TRANCOUNT counts it, why a second session waits, and how to find and clear the sessions that left work open.

Read More
A hand picking a small stone out of a tray of raw rice, the empty cooking pot waiting beside it.

Data Quality Asserts in T-SQL: Failing a Load When Rules Break

May 4, 2023
Pinal Dave
SQL Tips and Tricks
ETL, SQL Error Messages, SQL Server, SQL Transactions

Write data quality asserts in T-SQL to reject invalid staging rows, preserve check results, and record each load attempt.

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

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