von Uwe Ricken | Nov. 6, 2026 | 400, DB Engine, Optimierung, SQL Blog
When Microsoft introduced Table Variable Deferred Compilation (TVDC) in SQL Server 2019, table variables finally became capable of generating plans based on actual cardinalities instead of the notorious one-row estimate. If TVDC causes problems, Microsoft provide the...
von Uwe Ricken | Okt. 8, 2026 | 300, SQL Blog
CTE vs temp table performance in SQL Server is one of those evergreen debates that never seems to fade. The recent MSSQLTips article by Mehdi Ghapanvari compares both approaches and concludes that temp tables sometimes win because of better cardinality estimation...