seniorT-SQL
What is SQL Server execution plan recompilation and its causes?
Updated May 17, 2026
Short answer
Recompilation occurs when SQL Server decides an existing plan is no longer optimal or valid.
Deep explanation
Recompilation can be triggered by schema changes, statistics updates, SET option changes, temp table modifications, or significant parameter shifts. While it ensures correctness, it increases CPU overhead due to re-optimization. Frequent recompilations may indicate unstable workload or poor schema design.
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