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
The locked row maze is a six-by-six grid with S in the upper-left cell and R in the lower-right cell.

The Locked Row Maze: Find the Only Route

November 29, 2026
Pinal Dave
SQL Puzzle

The locked row maze has one valid route. Start at S, reach R, and check each turn against the answer.

Read More
Cardinal Rules, a three panel cartoon by SQLAuthority. Sam asks why the server is crawling the day after Thanksgiving. The red bird says it cooks the whole dinner again every time the doorbell rings. Sam says reuse the plan and the bird says it now makes two dinners.

AI Made the Server Cook Thanksgiving Twice

November 28, 2026
Pinal Dave
AI
AI, Parameter Sniffing, Recompile, SQL Performance

AI made the server cook the entire holiday dinner again every time one person rang the doorbell. Then it helpfully made two dinners.

Read More
A hand drawn guidebook map with four regions labelled version store, temp table quarter, spill district and allocation office, with a small compass rose.

tempdb: A Traveller’s Guide to Four Regions

November 27, 2026
Pinal Dave
SQL Performance
SQL Memory, SQL Performance, SQL Scripts, SQL TempDB, Transaction Log

tempdb, written up the way a guidebook writes up a country most people only visit when something has gone wrong. Four regions, how to get there, what it costs, dangers and annoyances, and when to go. Every figure was measured on SQL Server 2025 during the trip.

Read More
Figure showing flawed data going in and a fluent, confident answer coming out.

Garbage In, Confidence Out: Data Quality for AI

November 26, 2026
Pinal Dave
AI
AI, AI Book, Data Observability, Database
Part nine of ten. Every data professional knows garbage in, garbage out. AI adds a twist: the garbage comes out polished, fluent and sure of itself. This is the chapter where your years of data work become the advantage. 1. Why does data quality matter more with AI? Because AI…
Read More
Five identical test rigs on a laboratory bench, each holding a printed query, photographed in the flat even light of a product test.

Paging in SQL Server: Five Methods, Tested Like for Like

November 25, 2026
Pinal Dave
SQL Performance
Execution Plan, SQL Cursor, SQL Paging, SQL Performance, SQL Scripts

Paging in SQL Server, done five ways against the same 1,200,000 rows, the same sort, and the same page size. Every completed method produced the same checksum at each depth, which checks consistency without proving row-by-row equality. Then I counted the reads.

Read More
A rural town sign says POP. 4,212 with GIVE OR TAKE underneath, illustrating an approximate row count.

The Fastest Way to Count Rows in SQL Server: I Asked Ten DBAs

November 24, 2026
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Server

The fastest way to count rows in SQL Server depends on your goal. Compare COUNT, narrow indexes, and approximate metadata counts.

Read More
Two drawn tables side by side. On day one the Orders table is six tidy columns that fit. In year three it is crowded with extra columns spilling off the edge, sticky notes reading temp fix 2024 and do not delete, and a crack across it.

AI Database Schemas: Good SQL, Tables That Age Badly

November 23, 2026
Pinal Dave
SQL Performance
AI, Best Practices, Database, Developer

AI database schemas look correct on the day they are written and hurt in year three. On a recent consulting engagement we changed five lines of a generated orders table. Here is the before and after, and what those five lines cost when I measured both on SQL Server 2025.

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

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