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
Diagram titled One row, one DELETE, five places it still lives. The left panel lists the row alive: a 284 byte log record before the commit, an address at 1 colon 392 colon 0, a checkpoint writing the page, and a backup copying it out. The right panel lists what remains after the delete: the ghost record still 184 bytes, log records, the statistics histogram that names the row, deallocated pages, and every backup.

The Migration of a Row: Tagged, Followed, Found Again

September 21, 2026
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, Developer, SQL Server

I followed the migration of a row through SQL Server 2025, from the first write to the grave. The log gets there before the table. The delete does not erase anything. And when the table is empty and the ghost is gone, the statistics histogram still names the row in full.

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
SQL Server Deadlock: Build One With Your Own Hands

SQL Server Deadlock: Build One With Your Own Hands

August 4, 2026
Pinal Dave
SQL Performance
Deadlock, SQL Server

A SQL Server deadlock occurs when sessions form a cycle of dependencies and none can continue. This example lets you create the cycle, inspect it, and remove it.

Read More
Advanced Data Retrieval

Advanced Data Retrieval Techniques in SQL Server – Video Course

June 1, 2024
Pinal Dave
SQLAuthority News
Pluralsight, SQL Server

The “Advanced Data Retrieval Techniques in SQL Server” course, designed to elevate your proficiency in handling complex SQL Server tasks.

Read More
brent pinal

SQL SERVER – Performance: OR vs IN – A Summary and Further Reading

September 12, 2023
Pinal Dave
SQL Performance
Clustered Index, Computed Column, SQL Index, SQL Server

The varied responses led me to write a detailed blog post to clarify the correct answer. If you missed it, you can read it here. Let us see A Summary and Further Reading.

Read More
The Flight Connection Puzzle

SQL SERVER – The Flight Connection Puzzle

July 31, 2023
Pinal Dave
SQL Puzzle
CTE, SQL Server

Today we are going to see another such puzzle – The Flight Connection Puzzle. This blog post is going to be really fun blog post.

Read More
ISNULL and COALESCE

SQL SERVER – Difference Between ISNULL and COALESCE

June 15, 2023
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL NULL, SQL Server

SQL Server provides two commonly used functions, ISNULL and COALESCE, to address this requirement. Difference Between ISNULL and COALESCE

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

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