Hi Folks,
I ran a simple query on my sql server 2005 instance (select * from testtable). I then ran the following query to see if it was in the query cache.
select t.text
, s.last_execution_time
, *
from
sys.dm_exec_query_stats s
cross apply sys.dm_exec_sql_text(s.sql_handle) t
where
t.objectid is not null
order by
s.last_execution_time desc
It was not there .. what am I doing wrong?