I admit that sp_prepare is an odd bird, and thankfully one that isn’t used a ton. I still run into applications that are unfortunate enough to have been…
Category: PSP
SQL Server 2022 CTP 2.1 Improvements To Parameter Sensitive Plan Optimization
Several weeks back, I blogged about a missed opportunity with the new parameter sensitive plan feature.
Read the post: SQL Server 2022 CTP 2.1 Improvements To Parameter Sensitive Plan Optimization
How SQL Server 2022’s Parameter Sensitive Plan Feature Can Make Query Store Confusing
SQL Server 2022's parameter sensitive plan optimization makes Query Store harder to read, because one query becomes several entries that are hard to tie…
Read the post: How SQL Server 2022’s Parameter Sensitive Plan Feature Can Make Query Store Confusing
SQL Server 2022 Parameter Sensitive Plan Optimization: Does Not Care To Fix Your Local Variable Problems
There are some code comments you see that really set the stage for how tuning a query is going to go.
SQL Server 2022 Parameter Sensitive Plan Optimization: How PSP Can Help Some Queries With IF Branches
I’ve spent a bit of time talking about how IF branches can break query performance really badly in SQL Server.
SQL Server 2022 Parameter Sensitive Plan Optimization: Sometimes There’s Nothing To Fix
After seeing places where the Parameter Sensitive Plan (PSP) optimization quite stubbornly refuses to kick in, it’s somewhat amusing to see it kick in…
SQL Server 2022 Parameter Sensitive Plan Optimization: Does PSP Work With Dynamic SQL?
When I talk to clients about using dynamic SQL, they’re usually under the misconception that those plans can’t get reused.
SQL Server 2022 Parameter Sensitive Plan Optimization: A Missed Opportunity For PSP To Make A Query Go Faster
The index and procedure creation script for this are a bit on the long side, so I’m going to stick them in a GitHub gist to keep the post concise, since we…
SQL Server 2022 Parameter Sensitive Plan Optimization: When PSP Can Help Your Queries Go Faster
I’ve used this procedure as an example in the past. It’s a great parameter sniffing demo.
SQL Server 2022 Parameter Sensitive Plan Optimization: Extended Events Related To PSP
There isn’t a lot interesting in these Extended Events. I was pretty disappointed with them.
Read the post: SQL Server 2022 Parameter Sensitive Plan Optimization: Extended Events Related To PSP
SQL Server 2022 Parameter Sensitive Plan Optimization: How PSP Works To Solve Some Parameter Sensitivity Issues
In the bad old days, which are still your days (but at least you have better days to look forward to), SQL Server’s cost-based optimizer would take a…
SQL Server 2022 Parameter Sensitive Plan Optimization: The Problem With Sniffed Parameter Sensitivity
When Microsoft first started coming up with these Intelligent Query Processing features, I think everyone who cares about That Sort Of Thing© wondered when…
SQL Server 2022 Is Going To Mess Up Your Query Monitoring Scripts
SQL Server 2022 has a new feature in it to help with parameter sensitive query plans.
Read the post: SQL Server 2022 Is Going To Mess Up Your Query Monitoring Scripts

