Memory-related diagnostic queries: buffer pool, plan cache, and memory grants.
Displays key memory metrics including max server memory, buffer pool size, page life expectancy, and memory grants pending.
Shows live memory grants for executing queries with session context and query execution plans.
Lists objects in the buffer pool for the current database with page counts and memory usage by table/index.
Analyzes plan cache to show single-use plans vs. multi-use plans for evaluating the optimize for adhoc workloads setting.
Lists pages in the buffer pool grouped by page type with counts for each type.
Queries important memory and buffer performance counters including buffer cache hit ratio and page life expectancy.
Provides detailed analysis of cached execution plans including cache attributes, creation time, and usage metrics.
Summarizes plan cache usage by object type showing count and size for single-use vs. multi-use plans.
Shows active memory grants for queries with session information and SQL text details.