What is SQL Server automatic tuning and force last good plan mechanism?
Updated May 17, 2026
Short answer
Automatic tuning detects performance regressions and can revert to last known good execution plan.
Deep explanation
SQL Server Automatic Tuning monitors query performance over time. If a new execution plan performs worse than a previous version, SQL Server can automatically revert to the last known good plan using plan forcing. This is based on runtime performance telemetry collected in Query Store. It helps stabilize workloads affected by plan regressions due to statistics changes or parameter sniffing.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro