I'm not sure if it is good to enable the KEEPFIXED PLAN to reduce the impact of recompilation in the Production Env?

I'd know if we may gain performance after that or on the other hand it will be even worse.

For my case, I have a batch of stored procedures running in SQL Server 2005 and some one of need to run in a fixed loop condition.



1 Answer 1


Personally, I wouldn't use it.

There are better ways on managing this with asynchronous statistics or plan guides nowadays. I've only ever seen this hint used on some old trading database that was geared towards Sybase/very old SQL Server.

Also, you now have statement level recompilation that may fit your use case better

But really, you'll have to try it and find out in your situation...

  • 1
    Just an observation: sp_whoisactive (11.32) uses it Oct 29, 2018 at 8:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.