2 – How Temp Tables Affect TempDB
It seems so simple at first: queries create temp tables, load data, and drop ’em. How hard can it be? Spectacularly tricky, as it turns out. Temp tables share some behaviors with real tables, but they also have their own tricky behavior when it comes to statistics and execution plans. We’ll start by creating a…
