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
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
A heavy sled hauled almost to the top of a snowy slope, its red rope trailing back down

Before You KILL a Session: Estimating the Rollback Cost

February 4, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Lock, SQL Server, SQL Transactions

Before you KILL a session, inspect its transaction age, log bytes, current command, and likely rollback work, then monitor the undo safely.

Read More
Transactions and Variables

Transactions and Variables – SQL in Sixty Seconds #150

January 22, 2021
Pinal Dave
SQL Tips and Tricks
SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Transactions

Transactions and Variables both are not related at all. There is no impact of a transaction on a variable. Let us learn about it today.

Read More
create statement

SQL SERVER – CREATE Statement in TRANSACTION

November 3, 2020
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Transactions, Transaction Isolation

Recently my client of Comprehensive Database Performance Health Check asked me if we can use the CREATE statement in the TRANSACTION or not.

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

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