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 hearth ash rake beside settled ashes from an earlier fire

tempdb-Heavy Queries: Finding Them in Query Store

December 8, 2021
Pinal Dave
SQL Performance
Query Store, SQL Server, SQL TempDB

The tempdb spike is over before you log in. Query Store remembers who caused it, and here is how to ask.

Read More
A farmhouse fireplace just relit in the morning, a small flame catching on kindling under cold logs.

When Did SQL Server Last Restart? Four Ways to Check

April 2, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL Log, SQL Server, SQL TempDB

Find SQL Server’s last restart using startup metadata, tempdb, logs, and sessions, then interpret reset counters correctly.

Read More
Gouache painting of a heaped woodpile beside a neat stack of logs on a vermilion pallet

Index Build Speed: Which Rebuild Settings Change the Time

March 1, 2021
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL TempDB

Index build speed depends on rebuild or reorganize, MAXDOP, ONLINE, SORT_IN_TEMPDB and the recovery model. This post times each choice on a million row table and measures the log under each recovery model. It shows which one changes the clock and which changes only the log.

Read More
Gouache painting of a bakery bench with trays and bowls beside a small vermilion side table holding a few cookie cutters

Room for an Index Build: Free Space and TempDB Placement

January 19, 2021
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL TempDB

Room for an index build is the free space that your database and tempdb need before the build starts. This post estimates the index, checks both places, breaks a build on purpose, and shows what SORT_IN_TEMPDB moves and what it leaves in your database.

Read More
Temp Table in

Dropping Temp Table in Stored Procedure – SQL in Sixty Seconds #124

September 22, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Performance, SQL Scripts, SQL Server, SQL Stored Procedure, SQL TempDB, Temp Table

Is dropping temp table in stored procedure code really needed? In this SQL in Sixty Seconds video, I compare two procedures to show what happens.

Read More
A folded paper shelter stands beside a permanent wooden house on a workbench

What is Temp Stored Procedures? – Interview Question of the Week #294

September 20, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure, SQL TempDB, Temp Table

Temp stored procedures are the SPthat are created with the help of the # at the beginning of the name and only available until the SQL Server restarts.

Read More
move TempDB

Move TempDB for Performance – SQL in Sixty Seconds #107

August 22, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Performance, SQL Server, SQL TempDB

A client had slow overall performance because TempDB sat on a slow drive. In this SQL in Sixty Seconds video, I show how to move TempDB for performance.

Read More
Previous 1 2 3 4 5 … 14 Next
  • Books
  • Testimonials
  • Privacy Policy

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