Kendra Little fixes a problem:
Forcing plans with Query Store can be a powerful tool—until it mysteriously fails. In real production systems, plan forcing sometimes just… doesn’t work. One common culprit is the cryptic
OPTIMIZATION_REPLAY_FAILED
error.If you’re hitting
OPTIMIZATION_REPLAY_FAILED,
try re-forcing the plan using@disable_optimized_plan_forcing=1
.
Click through for a summary of the problem and additional helpful information on the issue.