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
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
A jigsaw puzzle with pieces sorted into groups before being fitted together

Common Table Expressions for Readability

April 20, 2011
Pinal Dave
SQL Tips and Tricks
CTE, SQL Coding Standards, SQL Server, Temp Table

Common table expressions for readability name query steps and support recursion, but they do not promise cached intermediate results.

Read More
SQL SERVER - How to Drop Temp Table - Check Existence of Temp Table

SQL SERVER – How to Drop Temp Table – Check Existence of Temp Table

May 17, 2009
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL TempDB, Temp Table

Readers often ask how to check existence of a temp table and how to drop temp table without Msg 2714. My earlier article answers all of these questions.

Read More
SQL SERVER - SQL SERVER - Comparison : Similarity and Difference #TempTable vs @TempVariable - Part 2

SQL SERVER – SQL SERVER – Comparison : Similarity and Difference #TempTable vs @TempVariable – Part 2

May 12, 2008
Pinal Dave
SQL Tips and Tricks
Temp Table

Can a temp table have indexes? Yes. In Part 2 of #TempTable vs @TempVariable, I explain how temporary table indexes live in TempDB and when they help.

Read More
A pressure cooker on a stove releasing a thin plume of steam from its safety valve, a hand resting nearby

Porting Stored Procedures Between Platforms

March 17, 2008
Pinal Dave
SQL Tips and Tricks
SQL Migration, SQL Server, SQL Stored Procedure, Temp Table

Porting stored procedures means preserving error, transaction, temporary-table, sequence, and date behavior instead of translating tokens.

Read More
Previous 1 … 3 4 5 6
  • Books
  • Testimonials
  • Privacy Policy

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