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
Incense censer retaining earlier ash beside an older fragment and a fresh coil

Currency Rates by Effective Date: Designing the Lookup Table

January 21, 2017
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Why did last quarter’s invoices change overnight? Probably because the rate table had no dates. Here is a lookup that remembers.

Read More
Magnolia branch showing connected buds and a detached twig below

Building Full Folder Paths From a Parent-Child Table

November 2, 2016
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Your folder table stores only a name and a parent, so the full path has to be walked. I show the query, and how to catch the rows it quietly leaves out.

Read More
Two bobbins fitting different matching thread spindles

Changing a User-Defined Table Type That Procedures Use

June 10, 2016
Pinal Dave
SQL Tips and Tricks
SQL Table Operation, SQL User Group, Table Partitioning, Temp Table

You need one more column in a table type, but procedures depend on it. Here is the order of moves that works, with the errors along the way.

Read More
Rubber curry comb with hairs in some spaces and empty spaces retained

Counting Partitions per Table and Spotting Empty Ones

May 20, 2016
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

A quick count said 8 partitions, but the table has 4. Here is where the extra rows came from and how to spot empty partitions.

Read More
Temp table query execution plan.

SQL SERVER – Inside Temp table Object Creation – Part II

November 30, 2014
Pinal Dave
SQL Tips and Tricks
Temp Table

A first year developer wrote in with a question after my post on temp table object creation. Here is my answer, with a closer look at tempdb.

Read More
A small proofing basket with a huge mass of dough spilling over its sides across a floured bakery bench.

Temp Table Statistics: Why a #Table Plan Goes Stale

July 12, 2013
Pinal Dave
SQL Performance
Execution Plan, SQL Performance, SQL Server, SQL Statistics, Temp Table

Inspect temp table statistics across procedure calls, compare estimates with loaded rows, and test targeted refresh and recompile fixes.

Read More
A large soap bubble with a smaller one inside, a red bubble wand in a dish.

Temp Table Scope in Nested Procedures and Dynamic SQL

March 30, 2013
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Stored Procedure, SQL TempDB, Temp Table

Explain temp table scope across nested procedures and dynamic SQL, reproduce missing and duplicate-name errors, and pass rows safely.

Read More
Previous 1 … 4 5 6 7 8 9 10 Next
  • Books
  • Testimonials
  • Privacy Policy

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