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
A sandcastle on a beach half washed away by the sea, and beside it a red bucket of shells that stayed dry.

Table Variables vs Temporary Tables Quiz: Which Survives a Rollback?

January 14, 2012
Pinal Dave
SQL Puzzle
SQL TempDB, SQL Transactions, SQL Variable, Temp Table

This Table Variables vs Temporary Tables Quiz inserts one row into each, then rolls back. The table variable keeps its row and the temporary table loses it. A tested script proves it, and two more scripts show a rollback-proof log and the statistics gap.

Read More
Rinsed empty milk bottles on a doorstep at dawn waiting for reuse, one still wearing a red foil cap.

Temp Table Caching: Why Some Temp Tables Get Reused

November 1, 2011
Pinal Dave
SQL Performance
SQL Server, SQL Statistics, SQL Stored Procedure, SQL TempDB, Temp Table

Understand temp table caching in stored procedures, avoid cache blockers, inspect creation counters, and review retained statistics.

Read More
Marbles jammed at the narrow neck of a glass funnel, more rolling toward it

Spotting tempdb Contention

October 9, 2011
Pinal Dave
SQL Performance
DBA, SQL Performance, SQL TempDB, SQL Wait Stats

Spot tempdb contention through PAGELATCH waits and allocation pages, then review file layout and current server settings before changing files.

Read More
A detailed inspection bench holds a carefully organized tool tray beside a wooden assembly ready for checking.

SQL Server Health Check: Six Checks to Prioritize

May 5, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Backup and Restore, SQL Server, SQL Server Configuration, SQL TempDB

A SQL Server health check becomes useful when its findings lead to a clear, justified next step. I start with recovery and access risks before tuning preferences. A warning deserves investigation, but it does not automatically justify a server change.

Read More
A finite ceramic reservoir supplies two vessels through separate connected spouts.

SQL SERVER – TempDB in RAM for Performance

April 10, 2011
Pinal Dave
SQL Performance
SQL Server, SQL TempDB

TempDB in RAM needs a review of capacity, support and memory pressure. I compare those costs with the bottleneck it would address.

Read More
Four cooks crowd one ticket book at the pass and two of them collide over the front page of a single notepad. In the last panel four notepads sit spread out on the back table and the cooks wait politely behind a velvet rope made of ladles: "Four notepads for the back table. One line for the book."

PAGELATCH Wait Stats: Hot Pages in Memory and tempdb

February 12, 2011
Pinal Dave
SQL Performance
SQL DMV, SQL Index, SQL TempDB, SQL Wait Stats

PAGELATCH wait stats show tasks queuing for a short grab on a page that is already in memory. On Night 12 at the Clipboard Diner, four cooks crowd one ticket book and one notepad. You’ll learn the difference between a latch and a lock, how to read a page like 2:1:1, and how to fix last page inserts and tempdb contention.

Read More
Casey clears a small patch of counter for a cake for twelve, sixty guests show up, and Jesse ends up frosting half the cake down in the basement. In the last panel a frosting-covered Jesse sits by the lopsided cake while Casey takes the next cake order on the phone: "Cake for twelve? Lovely. Now, how many are really coming?"

IO_COMPLETION Wait Stats: Spills, Sorts and File Growth

February 10, 2011
Pinal Dave
SQL Performance
SQL Memory, SQL Scripts, SQL TempDB, SQL Wait Stats

IO_COMPLETION wait stats measure queries waiting on disk work that isn’t a normal data page read, such as sorts and hashes that spill to tempdb. On Night 10 at the Clipboard Diner, a sheet cake for twelve turns out to be for sixty. Learn why spills happen, how to find them, and what SQL Server 2022 changed for log file growth.

Read More
Previous 1 … 9 10 11 12 13 14 Next
  • Books
  • Testimonials
  • Privacy Policy

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