DMVs Flashcards

1
Q

DMV for Query Optimizer info?

A

select *
from sys.dm_exec_query_optimizer_info

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

DMV for query stats?

A

select *
from sys.dm_exec_query_stats

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DMV to view cache plans?

A

SELECT *
FROM sys.dm_exec_cached_plans

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

DMV to view current executing requests?

A

SELECT *
FROM sys.dm_exec_requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

DMV to view OS tasks?

A

SELECT *
FROM sys.dm_os_tasks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

DMV to view current sessions?

A

SELECT *
FROM sys.dm_exec_sessions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

DMV to view current connections?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

DMV to view executing cursors?

A

SELECT *
FROM sys.dm_exec_cursors(session_id)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

DMV to view information about memory allocations by internal memory manages?

A

SELECT *
FROM sys.dm_os_memory_brokers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

DMV to view information about physical non-uniform memory access (NUMA)?

A

SELECT *
FROM sys.dm_os_memory_nodes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

DMV to view information about CPU node configuration?

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

DMV to view SQL Server memory usage?

A

SELECT *
FROM sys.dm_os_process_memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

DMV to view System memory usage?

A

SELECT *
FROM sys.dm_os_sys_memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

DMV to view Resource Governor configuration?

A

SELECT *
FROM sys.dm_resource_governor_configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

DMV to view Resource Governor resource pools?

A

SELECT *
FROM sys.dm_resource_governor_resource_pools

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

DMV to view Resource Governor workload groups?

A

SELECT *
FROM sys.dm_resource_governor_workload_groups

17
Q

DMV to view all entries in memory cache?

A

SELECT *
FROM sys.dm_os_memory_cache_entries

18
Q

DMV to view about the current query-resource semaphore status?

A

SELECT *
FROM sys.dm_exec_query_resource_semaphores

19
Q

DMV to view about the queries that have acquired a memory grant or that still require a memory grant to execute?

A

SELECT *
FROM sys.dm_exec_query_memory_grants

20
Q

DMV to view cache clock hands?

A

SELECT *
FROM sys.dm_os_memory_cache_clock_hands

21
Q

DMV to view cache counters?

A

SELECT *
FROM sys.dm_os_memory_cache_counters

22
Q

DMV to view ring buffers?

A
23
Q

DMV to view wait stats?

A

SELECT *
FROM sys.dm_os_wait_stats

24
Q

DMV to view I/O statistics for data and log files?

A

SELECT *
FROM sys.dm_io_virtual_file_stats(database_id, file_id)

25
Q

DMV to view pending I/O request?

A

SELECT *
FROM sys.dm_io_pending_io_requests

26
Q

DMV view file space usage?

A

SELECT *
FROM sys.dm_db_file_space_usage

27
Q

DMV to view active transactions that use row versions?

A

SELECT *
FROM sys.dm_tran_active_snapshot_database_transactions

28
Q

DMV to view page allocation and deallocation by session in tempDB?

A

SELECT *
FROM sys.dm_db_session_space_usage

29
Q

DMV to view page allocation and deallocation by task for tempDB?

A

SELECT *
FROM sys.dm_db_task_space_usage

30
Q

DMV to view the wait queue of tasks that are waiting on some resource?

A

SELECT *
FROM sys.dm_os_waiting_tasks

31
Q

DMV to view information about all the waits encountered by threads that executed?

A

SELECT *
FROM sys.dm_os_wait_stats

32
Q

DMV to view currently active lock manager resources?

A

SELECT *
FROM sys.dm_tran_locks

33
Q

DMV to view low level I/O, locking, latching, and access method activity for each partition of a table or index in the database?

A

SELECT *
FROM sys.dm_db_index_operational_stats (database_id, object_id, index_id, partition_number)

34
Q

DMV to view index operations and the time each type of operation was last performed?

A

SELECT *
FROM sys.dm_db_index_usage_stats

35
Q

DMV to view a virtual table for the objects that are producing the most versions in the version store?

A

SELECT *
FROM sys.dm_tran_top_version_generators

36
Q

DMV to view a virtual table that display all version records in the version store?

A

SELECT *
FROM sys.dm_tran_version_store

37
Q
A