Look for plans getting recompiled
Look to see if plans are getting recompiled due to memory issues.
Last updated:
Warning: Review and test in a non-production environment before running.
-- Look to see if plans are getting recompiled due to memory issues
SELECT *
FROM sys.dm_exec_query_optimizer_info
WHERE counter = 'optimizations' OR counter = 'elapsed time'
GO