Dynamic Management Views
Dynamic Management Views
DMVs return server state information that can be used to monitor the health of a server
instance, diagnose problems, and tune performance. There are two types of DMVs:
Server-scoped DMVs These require the VIEW SERVER STATE permission on
the server.
Database-scoped DMVs These require the VIEW DATABASE STATE permission
on the database.
DMVs are organized into the following categories
1) Common Language Runtime Related
2) Database Mirroring Related
3) Database Related
4) Execution Related
5) Full-Text search Related
6) Index Related
7) I/O Related
8) Query Notifications Related
9) Replication Related
10) Service Broker Related
11) SQL Operating System Related
12) Transaction Related
1
Index Related DMVs
1) sys.dm_db_index_operational_stats:- Returns current low-level I/O, locking, latching,
and access method activity for each partition of a table or index in the database.
2) sys.dm_db_index_usage_stats:- Returns counts of different types of index operations
and the time each type of operation was last performed.
3) sys.dm_db_missing_index_details:- Returns detailed information about missing indexes.
4) sys.dm_db_index_physical_stats:- Returns size and fragmentation information for the
data and indexes of the specified table or view.