DMVs Flashcards
DMV for Query Optimizer info?
select *
from sys.dm_exec_query_optimizer_info
DMV for query stats?
select *
from sys.dm_exec_query_stats
DMV to view cache plans?
SELECT *
FROM sys.dm_exec_cached_plans
DMV to view current executing requests?
SELECT *
FROM sys.dm_exec_requests
DMV to view OS tasks?
SELECT *
FROM sys.dm_os_tasks
DMV to view current sessions?
SELECT *
FROM sys.dm_exec_sessions
DMV to view current connections?
DMV to view executing cursors?
SELECT *
FROM sys.dm_exec_cursors(session_id)
DMV to view information about memory allocations by internal memory manages?
SELECT *
FROM sys.dm_os_memory_brokers
DMV to view information about physical non-uniform memory access (NUMA)?
SELECT *
FROM sys.dm_os_memory_nodes
DMV to view information about CPU node configuration?
DMV to view SQL Server memory usage?
SELECT *
FROM sys.dm_os_process_memory
DMV to view System memory usage?
SELECT *
FROM sys.dm_os_sys_memory
DMV to view Resource Governor configuration?
SELECT *
FROM sys.dm_resource_governor_configuration
DMV to view Resource Governor resource pools?
SELECT *
FROM sys.dm_resource_governor_resource_pools
DMV to view Resource Governor workload groups?
SELECT *
FROM sys.dm_resource_governor_workload_groups
DMV to view all entries in memory cache?
SELECT *
FROM sys.dm_os_memory_cache_entries
DMV to view about the current query-resource semaphore status?
SELECT *
FROM sys.dm_exec_query_resource_semaphores
DMV to view about the queries that have acquired a memory grant or that still require a memory grant to execute?
SELECT *
FROM sys.dm_exec_query_memory_grants
DMV to view cache clock hands?
SELECT *
FROM sys.dm_os_memory_cache_clock_hands
DMV to view cache counters?
SELECT *
FROM sys.dm_os_memory_cache_counters
DMV to view ring buffers?
DMV to view wait stats?
SELECT *
FROM sys.dm_os_wait_stats
DMV to view I/O statistics for data and log files?
SELECT *
FROM sys.dm_io_virtual_file_stats(database_id, file_id)
DMV to view pending I/O request?
SELECT *
FROM sys.dm_io_pending_io_requests
DMV view file space usage?
SELECT *
FROM sys.dm_db_file_space_usage
DMV to view active transactions that use row versions?
SELECT *
FROM sys.dm_tran_active_snapshot_database_transactions
DMV to view page allocation and deallocation by session in tempDB?
SELECT *
FROM sys.dm_db_session_space_usage
DMV to view page allocation and deallocation by task for tempDB?
SELECT *
FROM sys.dm_db_task_space_usage
DMV to view the wait queue of tasks that are waiting on some resource?
SELECT *
FROM sys.dm_os_waiting_tasks
DMV to view information about all the waits encountered by threads that executed?
SELECT *
FROM sys.dm_os_wait_stats
DMV to view currently active lock manager resources?
SELECT *
FROM sys.dm_tran_locks
DMV to view low level I/O, locking, latching, and access method activity for each partition of a table or index in the database?
SELECT *
FROM sys.dm_db_index_operational_stats (database_id, object_id, index_id, partition_number)
DMV to view index operations and the time each type of operation was last performed?
SELECT *
FROM sys.dm_db_index_usage_stats
DMV to view a virtual table for the objects that are producing the most versions in the version store?
SELECT *
FROM sys.dm_tran_top_version_generators
DMV to view a virtual table that display all version records in the version store?
SELECT *
FROM sys.dm_tran_version_store