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 | Nov. 3, 2026 | 300, DB Engine, Optimierung, SQL Blog
When Microsoft introduced Interleaved Execution, many SQL Server professionals wondered whether this new optimization technique could eventually help address Parameter Sniffing as well. Instead of compiling a plan based on a fixed cardinality guess, the optimizer...
von Uwe Ricken | Okt. 30, 2026 | 300, DB Engine, SQL Blog
For years, SQL Server professionals are using Multi-Statement Table-Valued Functions (MSTVFs). The concept of „reusability“ of code originates from high-level programming languages and appears equally attractive for database projects. For this reason,...
von Uwe Ricken | Aug. 6, 2026 | DB Engine, Indexierung, Partitioning, SQL Blog, Tipps und Tricks
Today, I came across a post by Michael J. Swart on LinkedIn in which he presented a variation – based on his blog article „Partitioning a Huge Table Quickly“ – of how to implement partitioning with minimal impact on application performance. I...
von Uwe Ricken | Nov. 4, 2025 | 200, DB Engine, SQL Blog
How often do you read on blogs and/or social media platforms that it simplifies work to use „1 = 1“ as the first statement in a WHERE clause, followed by „AND…“ in subsequent lines? Some comments point out that it’s pointless, while...
von Uwe Ricken | März 12, 2025 | 300, DB Engine, SQL Blog
When using table hints, a few rules should be recommende, which – if ignored – can quickly lead to performance problems. In the database of one of our customer’s software, UPDLOCK is used as a table hint to force a serialization of processes....