December 2013
Intermediate to advanced
1872 pages
153h 31m
English
You can view and get information about the query plans currently in plan cache memory by using some of the DMVs available in SQL Server 2012. Following are some of the useful ones related to monitoring the plan cache:
sys.dm_exec_cached_plans—Returns general information about the query execution plans currently in the plan cache.
sys.dm_exec_query_stats—Returns aggregate performance statistics for cached query plans.