New Official Documentation on Forced Parameterization


I love me some documentation.

For years, I’ve pointed folks to the SQL Server 2008 documentation on Forced Parameterization, a really useful tool for reducing plan cache bloat, getting more accurate reusable query plans, and enabling SQL Server 2019 and 2022’s Intelligent Query Plan features, many of which rely on the same query text coming in repeatedly over time in order to tune it. That documentation was pretty sparse, though.

Good news! There’s a new set of documentation on Forced Parameterization, and it goes into more details about:

What kinds of literals are converted into parameters The exceptions: things