Query sys.syscacheobjects : sys.syscacheobjects « System Tables Views « SQL Server / T-SQL Tutorial






4> SELECT top 10 cacheobjtype, objtype, usecounts, sql
5> FROM sys.syscacheobjects
6> WHERE sql NOT LIKE '%cache%'
7>   AND sql NOT LIKE '%sys.%'
8>   AND sql NOT LIKE '%sp_executesql%';
9>
10> GO








27.17.sys.syscacheobjects
27.17.1.Query sys.syscacheobjects