I am experiencing a strange situation - my plan cache is almost empty. I use the following query to see what\'s inside:
SELECT dec.plan_handle,qs.sql_handle, dec
The main purpose of the question is to learn the possible reasons for an empty plan cache.
If it is to learn,the answer from Martin Smith,in the thread you referred will help you
If you want to know in particular,why plan is getting emptied,i recommend using extended events and try below extended event