sys.dm_audit_actions
DMVs

Returns a row for every audit action that can be reported in the audit log and every audit action group that can be configured as part of SQL Server Audit. (Database Engine) ID of the audit action.

#io#dmv
sys.dm_audit_class_type_map
DMVs

Returns a table that lists securable classes that can be mapped to the audit log. , see The class type of the entity that was audited.

#security-audit#dmv
sys.dm_broker_activated_tasks
DMVs

Returns a row for each stored procedure activated by Service Broker.

#service-broker#dmv
sys.dm_broker_connections
DMVs

Returns a row for each Service Broker network connection. The following table provides more Identifier of the SQL Server Network Interface (SNI) connection used by this connection for TCP/IP communications.

#io#dmv
sys.dm_broker_forwarded_messages
DMVs

Returns a row for each Service Broker message that an instance of SQL Server is in the process ID of the conversation to which this message Indicates whether this message is from the initiator of the conversation.

#service-broker#dmv
sys.dm_broker_queue_monitors
DMVs

Returns a row for each queue monitor in the instance. A queue monitor manages activation for Object identifier for the database that contains the queue that the monitor watches. Object identifier for the queue that the monitor State of the monitor. This value is one of the Last time that this queue monitor activated a stored Number of sessions that are currently waiting within This value includes

#service-broker#dmv
sys.dm_change_feed_log_scan_sessions
DMVs

2022 (16.x) and later versions Mirrored databases in Microsoft SQL database in Microsoft Fabric Returns activity from the SQL change feed.

#io#dmv
sys.dm_clr_properties
DMVs

Returns a row for each property related to SQL Server common language runtime (CLR) integration, including the version and state of the hosted CLR. The hosted CLR is initialized by executing any CLR routine, type, or trigger. The whether execution of user CLR code has been enabled on the server. Execution of user CLR columns. Each row in this view provides details about a property of the hosted CL

#clr#dmv
sys.dm_clr_tasks
DMVs

Returns a row for all common language runtime (CLR) tasks that are currently running. A Transact-SQL batch that contains a reference to a CLR routine creates a separate task for execution of all the managed code in that batch. Multiple statements in the batch that require managed code execution use the same CLR task.

#clr#dmv
sys.dm_column_encryption_enclave
DMVs

2019 (15.x) and later - Windows only Returns performance counters for the secure enclave for Always Encrypted. For more Always Encrypted with secure enclaves If the enclave is configured and has been correctly initialized after the last restart of SQL Server, the view contains exactly one row.

#io#dmv
sys.dm_column_store_object_pool
DMVs

2016 (13.x) and later versions SQL database in Microsoft Fabric Returns counts of different types of object memory pool usage for columnstore index objects.

#columnstore#dmv
sys.dm_database_encryption_keys
DMVs

When a symmetric key is created, the symmetric key must be encrypted by using at least one of the following options: The key can have more than one encryption of each type. In other words, a single symmetric key can be encrypted by using multiple certificates, passwords, symmetric keys, and asymmetric keys at the same time. To protect the key material of the symmetric key, SQL Server and Azure SQL

#io#dmv
sys.dm_db_column_store_row_group_operational_stats
DMVs

2016 (13.x) and later versions SQL database in Microsoft Fabric Returns current row-level I/O, locking, and access method activity for compressed rowgroups length of time a user query must wait to read or write to a compressed rowgroup or partition of a columnstore index, and identify rowgroups that are encountering significant I/O activity or In-memory columnstore indexes don't appear

#io#dmv
sys.dm_db_file_space_usage
DMVs

Returns space usage information for each data file in the database. In Azure SQL Database, the values are unique within a single database or an elastic pool, but not within a : SQL Server 2012 (11.x) and later versions. : SQL Server 2012 (11.x) and later versions. Total number of pages in the data file. : SQL Server 2012 (11.x) and later versions.

#file#dmv
sys.dm_db_fts_index_physical_stats
DMVs

Returns a row for each full-text or semantic index in each table that has an associated full-text Object ID of the table that contains the index. Logical size of the extraction in number of index pages. Logical size of the extraction in number of index pages. Logical size of the extraction in number of index pages. Manage and Monitor Semantic Search For information

#full-text#dmv
sys.dm_db_index_operational_stats
DMVs

Returns the lower level data access, locking, and latching statistics for each partition of a table . Valid inputs are the ID number of a database, NULL, 0, or DEFAULT. The default is 0. NULL, 0, and DEFAULT are equivalent values in this Specify NULL to return information for all databases in the instance of SQL Server.

#index#dmv
sys.dm_db_index_physical_stats
DMVs

Returns size and fragmentation information for the data and indexes of the specified table or view in the SQL Server Database Engine. For an index, one row is returned for each level of the B-tree in each partition. For a heap, one row is returned for the each partition. For large object (LOB) data, one row is returned for the of each partition.

#index#dmv
sys.dm_db_index_usage_stats
DMVs

Returns counts of different types of index operations and the time each type of operation was In Azure SQL Database, dynamic management views cannot expose information that would impact database containment or expose information about other databases the user has access to. To avoid exposing this information, every row that contains data that doesn't belong to the c

#index#dmv
sys.dm_db_log_info
DMVs

2016 (13.x) SP2 and later versions SQL database in Microsoft Fabric information of the transaction log. Note all transaction log files are combined in the table output. Each row in the output represents a VLF in the transaction log and provides information relevant to that VLF in the log. Valid inputs are the ID number of a database, NULL, or DEFAULT. The default is NULL. NULL and DEF

#log#dmv
sys.dm_db_log_space_usage
DMVs

Returns space usage information for the transaction log. In Azure SQL Database, the values are unique within a single database or an elastic pool, but not within a The occupied size of the log as a percent of the total The amount of space used since the last log backup SQL Server 2014 (12.x) and later versions, SQL Server 2019 (15.x) and earlier versions require SQ

#log#dmv
sys.dm_db_log_stats
DMVs

2016 (13.x) SP2 and later versions SQL database in Microsoft Fabric dynamic management function returns summary level attributes and information on transaction log files of databases. Use this information for monitoring and diagnostics of transaction log health.

#log#dmv
sys.dm_db_missing_index_columns
DMVs

Returns information about database table columns that are missing an index. is a dynamic management function. An integer that uniquely identifies a missing index. It can be obtained from the following sys.dm_db_missing_index_details (Transact-SQL) sys.dm_db_missing_index_groups (Transact-SQL) How the column is used by the query. The possible values and their EQUALI

#index#dmv
sys.dm_db_missing_index_details
DMVs

Returns detailed information about missing indexes. In Azure SQL Database, dynamic management views cannot expose information that would impact database containment or expose information about other databases the user has access to. To avoid exposing this information, every row that contains data that doesn't belong to the connected tenant is filtered out. Identifi

#index#dmv
sys.dm_db_missing_index_group_stats
DMVs

Average percentage benefit that user queries could experience if this missing index group was implemented. The value means that the query cost would on average drop by this percentage if this missing index group was implemented. Number of seeks caused by system queries, such as auto stats queries, that the recommended index in the group could have been used for. For more information, see Auto Stat

#index#dmv
sys.dm_db_missing_index_group_stats_query
DMVs

One missing index group may have several queries that needed the same index. For more information about individual queries that needed a specific index in this DMV, see sys.dm_db_missing_index_group_stats_query To query this dynamic management view, users must be granted the VIEW SERVER STATE permission or any permission that implies the VIEW SERVER STATE permission. Requires VIEW SERVER PERFORMAN

#index#dmv
sys.dm_db_missing_index_groups
DMVs

This DMV returns information about indexes that are missing in a specific index group. In Azure SQL Database, dynamic management views cannot expose information that would impact database containment or expose information about other databases the user has access to.

#index#dmv
sys.dm_db_objects_disabled_on_compatibility_level_change
DMVs

Lists the indexes and constraints that will be disabled as a result of changing compatibility level in SQL Server. Indexes and constraints that contain persisted computed columns whose expressions use spatial UDTs will be disabled after upgrading or changing compatibility level. Use this dynamic management function to determine the impact of a change in compatibili

#execution#dmv
sys.dm_db_page_info
DMVs

2019 (15.x) and later versions SQL database in Microsoft Fabric Returns information about a page in a database. The function returns one row that contains the header information from the page, including the function replaces the need to use . Valid input is the ID number of a database. The default is NULL, however sending a NULL value for this parameter will result in an error. Valid

#execution#dmv
sys.dm_db_partition_stats
DMVs

Returns page and row-count information for every partition in the current database.

#io#dmv
sys.dm_db_persisted_sku_features
DMVs

SQL database in Microsoft Some features of the Database Engine change the way that information is stored in the database files. These features are restricted to specific editions of SQL Server. A database that contains these features can't be moved to an edition of SQL Server that doesn't support

#execution#dmv
sys.dm_db_session_space_usage
DMVs

Returns the number of pages allocated and deallocated by each session for the database. In Azure SQL Database, the values are unique within a single database or an elastic pool, but Number of pages reserved or allocated for user Number of pages deallocated and no longer reserved for user objects by this session.

#io#dmv
sys.dm_db_stats_histogram
DMVs

2016 (13.x) and later versions SQL database in Microsoft Fabric Returns the statistics histogram for the specified database object (table or indexed view) in the current SQL Server database. Similar to The ID of the object in the current database for which properties of one of its statistics is The ID of statistics for the specified .

#statistics#dmv
sys.dm_db_stats_properties
DMVs

filtered index, the number of rows might be less than the number of rows in the table. Total number of rows sampled for statistics calculations. Number of steps in the histogram. For more information, see DBCC SHOW_STATISTICS (Transact-SQL) unfiltered_rows Total number of rows in the table before applying the filter expression (for filtered statistics). If statistics are not filtered, unfiltered_r

#statistics#dmv
sys.dm_db_task_space_usage
DMVs

Returns page allocation and deallocation activity by task for the database. Request ID within the session. A request is also called a batch and may contain one or more queries. A session may have multiple requests active at the same time. Each query in the request may start multiple threads (tasks), if a parallel execution Execution context ID of the task.

#execution#dmv
sys.dm_db_tuning_recommendations
DMVs

2017 (14.x) and later versions SQL database in Microsoft Fabric Returns detailed information about automatic tuning recommendations. For more information, Unique name of recommendation.

#io#dmv
sys.dm_db_xtp_checkpoint_files
DMVs

Displays information about In-Memory OLTP checkpoint files, including file size, physical location and the transaction ID. A memory-optimized file group internally uses append-only files to store inserted and deleted rows for in-memory tables. There are two types of files. A data file contains inserted rows while a delta file contains references to deleted rows. SQL Server 2014 (12.x) is substanti

#in-memory#dmv
sys.dm_db_xtp_checkpoint_stats
DMVs

Returns statistics about the In-Memory OLTP checkpoint operations in the current database. If the database has no In-Memory OLTP objects, In-Memory OLTP (In-Memory Optimization) SQL Server 2014 (12.x) is substantially different from more recent versions, and is discussed The following table describes the columns in Server 2016 (13.x) and later versions. Last LSN seen by the controller. Log bytes u

#in-memory#dmv
sys.dm_db_xtp_gc_cycle_stats
DMVs

Outputs the current state of committed transactions that deleted one or more rows. The idle garbage collection thread wakes every minute or when the number of committed DML transactions exceeds an internal threshold since the last garbage collection cycle. As part of the garbage collection cycle, committed transactions move into one or more queues associated with generations.

#in-memory#dmv
sys.dm_db_xtp_hash_index_stats
DMVs

These statistics are useful for understanding and tuning the bucket counts for . It can also be used to detect cases where the index key has many A large average chain length indicates that many rows are hashed to the same bucket. This If the number of empty buckets is low or the average and maximum chain lengths are similar, it is likely that the total bucket count is too low.

#in-memory#dmv
sys.dm_db_xtp_index_stats
DMVs

Contains statistics collected since the last database restart. In-Memory OLTP (In-Memory Optimization) Using Indexes on Memory-Optimized Tables ID of the object to which this index Internal ID corresponding to the current Note: Applies to SQL Server 2016 (13.x).

#in-memory#dmv
sys.dm_db_xtp_memory_consumers
DMVs

Reports the database-level memory consumers in the In-Memory OLTP database engine. The view returns a row for each memory consumer that the database engine uses. Use this DMV to see how the memory is distributed across different internal objects. In-Memory OLTP overview and usage scenarios ID (internal) of the memory consumer. 0 = Aggregation. (Aggregates memory usage of two or more consumers. It

#in-memory#dmv
sys.dm_db_xtp_nonclustered_index_stats
DMVs

system dynamic management view includes statistics about operations on nonclustered indexes in contains one row for each nonclustered index on a memory-optimized table in the current memory index structure is created. In-memory index structures are recreated on database to understand and monitor index activity during DML operations and when a database is brought online.

#in-memory#dmv
sys.dm_db_xtp_object_stats
DMVs

Reports the number rows affected by operations on each of the In-Memory OLTP objects since the last database restart. Statistics are updated when the operation executes, regardless of whether the transaction commits or was rolled back. system dynamic management view can help you identify which memory-optimized tables are changing the most.

#in-memory#dmv
sys.dm_db_xtp_table_memory_stats
DMVs

Returns memory usage statistics for each In-Memory OLTP table (user and system) in the current database. The system tables have negative object IDs and are used to store run-time information for the In-Memory OLTP engine. Unlike user objects, system tables are internal and only exist in-memory, therefore, they are not visible through catalog views.

#in-memory#dmv
sys.dm_db_xtp_transactions
DMVs

Reports the active transactions in the In-Memory OLTP database engine. In-Memory OLTP (In-Memory Optimization) Internal ID for this transaction in the XTP The transaction ID. Joins with the for XTP-only transactions, such as transactions started by natively compiled stored of the session that is executing Begin transaction serial number of the End transaction serial number of the transaction The d

#io#dmv
sys.dm_db_xtp_undeploy_status
DMVs

2025 (17.x) Preview and later versions Returns a single row reflecting the status of the In-Memory OLTP (XTP) database engine when removing the engine from a database. XTP engine removal, or undeployment, is a multi-step process initiated by the statement that removes the last remaining memory-optimized container from step in the process.

#in-memory#dmv
sys.dm_exec_background_job_queue
DMVs

Returns a row for each query processor job that is scheduled for asynchronous (background) Time when the job was added to the queue. Database on which the job is to execute. Value depends on the job type. For more information, see the Remarks Value depends on the job type. For more information, see the Remarks Value depends on the job type.

#execution#dmv
sys.dm_exec_background_job_queue_stats
DMVs

Returns a row that provides aggregate statistics for each query processor job submitted for asynchronous (background) execution. Number of requests successfully posted to the queue. Number of requests that started execution. Number of requests serviced to either success or failure.

#execution#dmv
sys.dm_exec_cached_plan_dependent_objects
DMVs

Execution Related Dynamic Management Views and Functions (Transact-SQL) Dynamic Management Views and Functions (Transact-SQL) sys.syscacheobjects (Transact-SQL)

#execution#dmv
sys.dm_exec_cached_plans
DMVs

Returns a row for each query plan that is cached by SQL Server for faster query execution. You can use this dynamic management view to find cached query plans, cached query text, the amount of memory taken by cached plans, and the reuse count of the cached plans.

#execution#dmv
sys.dm_exec_compute_node_errors
DMVs

2016 (13.x) and later Returns errors that occur on PolyBase compute nodes. Unique across all query errors in the sys.dm_exec_compute_nodes (Transact-

#execution#dmv
sys.dm_exec_compute_node_status
DMVs

2016 (13.x) and later Holds additional information about the performance and status of all PolyBase nodes. Lists one Unique across scale-out cluster regardless of Any string of appropriate length. Total time elapsed since system start or restart. If total_elapsed_time exceeds the maximum value for an integer (24.8 days in milliseconds), it will cause materialization

#execution#dmv
sys.dm_exec_compute_nodes
DMVs

2016 (13.x) and later versions Holds information about nodes used with PolyBase data management. It lists one row per Use this DMV to see the list of all nodes in the scale-out cluster with their role, name and IP Unique numeric id associated with PolyBase troubleshooting with dynamic management views Dynamic Management Views and Functions (Transact-SQL) Database Related Dynamic Managem

#execution#dmv
sys.dm_exec_connections
DMVs

SQL analytics endpoint in Microsoft Fabric SQL database in Microsoft Fabric Returns information about the connections established to this instance of the database engine and the details of each connection. Returns server wide connection information for SQL Server and Azure SQL Managed Instance. Returns connection information for the current database in Azure SQL Database. Returns connection inform

#execution#dmv
sys.dm_exec_describe_first_result_set
DMVs

This dynamic management function takes a Transact-SQL statement as a parameter and returns the metadata for the first result set of the statement. returns the same result set definition as sys.dm_exec_describe_first_result_set_for_object One or more Transact-SQL statements. The provides a declaration string for parameters for the Tra

#execution#dmv
sys.dm_exec_describe_first_result_set_for_object
DMVs

This dynamic management function takes an @object_id as a parameter and describes the first result metadata for the module with that ID. The @object_id specified can be the ID of a Transact-SQL stored procedure or a Transact-SQL trigger.

#execution#dmv
sys.dm_exec_distributed_request_steps
DMVs

2016 (13.x) and later versions Holds information about all steps that compose a given PolyBase request or query. It lists one row per query step. sys.dm_exec_requests (Transact-SQL) 0 to (n-1) for a request with n steps.

#execution#dmv
sys.dm_exec_distributed_requests
DMVs

2016 (13.x) and later versions Holds information about all requests currently or recently active in PolyBase queries. It lists one Based on session and request ID, a user can then retrieve the actual distributed requests generated to be executed - via sys.dm_exec_distributed_requests.

#execution#dmv
sys.dm_exec_distributed_sql_requests
DMVs

2016 (13.x) and later Holds information about all SQL query distributions as part of a SQL step in the query. This view shows the data for the last 1000 requests; active requests always have the data present in sys.dm_exec_requests (Transact- sys.dm_exec_distributed_request_steps sys.dm_exec_compute_nodes (Transact-SQL) Set to -1 for requests that run at the node scope not the distribut

#execution#dmv
sys.dm_exec_dms_services
DMVs

2016 (13.x) and later versions Holds information about all of the DMS services running on the PolyBase compute nodes. It lists one row per service instance. sys.dm_exec_compute_nodes (Transact- PolyBase troubleshooting with dynamic management views Dynamic Management Views and Functions (Transact-SQL) Database Related Dynamic Management Views (Transact-SQL)

#execution#dmv
sys.dm_exec_dms_workers
DMVs

2016 (13.x) and later versions Holds information about all workers completing DMS steps. This view shows the data for the last 1000 requests and active requests; active requests always have the data present in this view. sys.dm_exec_distributed_request_steps sys.dm_exec_dms_workers (Transact-SQL) sys.dm_exec_compute_nodes (Transact-

#execution#dmv
sys.dm_exec_external_operations
DMVs

2016 (13.x) and later versions Captures information about external PolyBase operations. sys.dm_exec_requests (Transact- sys.dm_exec_distributed_request_steps 0-1 - multiplied by factor 100 (completed) 0-1 - multiplied by factor 100 (completed) PolyBase troubleshooting with dynamic management views Dynamic Management Views and Functions (Transact-SQL) Database Related Dynamic Management

#execution#dmv
sys.dm_exec_external_work
DMVs

2016 (13.x) and later versions Returns information about the workload per worker, on each compute node. to identify the work spun up to communicate with the external data source (for example, Hadoop or MongoDB). sys.dm_exec_requests (Transact- sys.dm_exec_requests (Transact- sys.dm_exec_dms_workers (Transact-SQL) sys.dm_exec_compute_nodes (Transact-SQL) 'File Split' (for Hadoop and Azur

#execution#dmv
sys.dm_exec_function_stats
DMVs

2016 (13.x) and later versions SQL database in Microsoft Fabric Returns aggregate performance statistics for cached functions. The view returns one row for each cached function plan, and the lifetime of the row is as long as the function remains cached. When a function is removed from the cache, the corresponding row is eliminated from this view. At that time, a Performance Statistics S

#execution#dmv
sys.dm_exec_input_buffer
DMVs

2014 (12.x) SP2 and later versions SQL database in Microsoft Fabric Returns information about statements submitted to an instance of SQL Server. Is the session ID executing the batch to be looked up.

#execution#dmv
sys.dm_exec_plan_attributes
DMVs

2016 (13.x) and later versions SQL database in Microsoft Fabric Returns one row per plan attribute for the plan specified by the plan handle. You can use this table-valued function to get details about a particular plan, such as the cache key values or the number of current simultaneous executions of the plan.

#execution#dmv
sys.dm_exec_procedure_stats
DMVs

sys.dm_exec_procedure_stats (Transact-SQL) sys.dm_exec_trigger_stats (Transact-SQL) ID of database. For static SQL in a stored procedure, the ID of the database containing the stored procedure. Null otherwise. Is NULL for ad hoc and prepared SQL statements. For a numbered stored procedure, this column returns the number of the stored procedure. For more information, see sys.numbered_procedures Is

#execution#dmv
sys.dm_exec_query_memory_grants
DMVs

Returns information about all queries that have requested and are waiting for a memory grant or have been given a memory grant. Queries that do not require a memory grant will not appear in this view. For example, sort and hash join operations have memory grants for query execution, while queries without an clause will not have a memory grant. In Azure SQL Database,

#execution#dmv
sys.dm_exec_query_optimizer_info
DMVs

On Azure SQL Database service objectives, and for databases in Microsoft Entra admin account, or membership in the is required. On all other SQL Database service objectives, either the permission on the database, or membership in the server role is required. contains the following properties (counters). All occurrence values are cumulative and are set to at system restart.

#execution#dmv
sys.dm_exec_query_optimizer_memory_gateways
DMVs

Requires VIEW SERVER PERFORMANCE STATE permission on the server. SQL Server uses a tiered gateway approach to reduce the number of permitted concurrent compilations. Three gateways are used, including small, medium, and big. Gateways help prevent the exhausting of overall memory resources by larger compilation memory-requiring Waits on a gateway result in delayed compilation. In addition to delays

#execution#dmv
sys.dm_exec_query_parallel_workers
DMVs

2016 (13.x) and later versions SQL database in Microsoft Fabric Returns worker availability information per node. Number of schedulers on this node. Maximum number of workers for parallel queries. Number of workers reserved by parallel queries, plus number of main Number of workers available for tasks.

#execution#dmv
sys.dm_exec_query_profiles
DMVs

Monitors real time query progress while the query is in execution. For example, use this DMV to determine which part of the query is running slow. Join this DMV with other system DMVs using the columns identified in the description field. Or, join this DMV with other performance counters (such as Performance Monitor, xperf) by using the timestamp columns.

#execution#dmv
sys.dm_exec_query_resource_semaphores
DMVs

Returns the information about the current query-resource semaphore status in SQL Server. provides general query-execution memory status and allows you to determine whether the system can access enough memory. This view complements memory information obtained from complete picture of server memory status.

#execution#dmv
sys.dm_exec_query_stats
DMVs

Returns aggregate performance statistics for cached query plans in SQL Server. The view contains one row per query statement within the cached plan, and the lifetime of the rows are tied to the plan itself.

#execution#dmv
sys.dm_exec_requests
DMVs

Associates up to 128 bytes of binary information with the current session or connection. constant, or a constant that is implicitly convertible to , to associate with the current session or connection. variable holding a context value to associate with the current session , SET CONTEXT_INFO affects the current session. T

#execution#dmv
sys.dm_exec_session_wait_stats
DMVs

2016 (13.x) and later versions SQL database in Microsoft Fabric Returns information about all the waits encountered by threads that executed for each session. You can use this view to diagnose performance issues with the SQL Server session and also with specific queries and batches. This view returns the same information that is aggregated for Name of the wait type. For more information

#execution#dmv
sys.dm_exec_sessions
DMVs

Associates up to 128 bytes of binary information with the current session or connection. constant, or a constant that is implicitly convertible to , to associate with the current session or connection. variable holding a context value to associate with the current session , SET CONTEXT_INFO affects the current session. T

#execution#dmv
sys.dm_exec_sql_text
DMVs

Number of characters into the currently executing batch or stored procedure at occurs.

#execution#dmv
sys.dm_exec_text_query_plan
DMVs

Indicates whether the corresponding stored procedure is encrypted. 0 = not encrypted Column is not nullable. Contains the compile-time Showplan representation of the query execution plan that is specified with . The Showplan is in text format. One plan is generated for each batch that contains, for example ad hoc Transact-SQL statements, stored procedure calls, and user-defined function calls. Col

#execution#dmv
sys.dm_exec_trigger_stats
DMVs

sys.dm_exec_procedure_stats (Transact-SQL) sys.dm_exec_trigger_stats (Transact-SQL) ID of database. For static SQL in a stored procedure, the ID of the database containing the stored procedure. Null otherwise. Is NULL for ad hoc and prepared SQL statements. For a numbered stored procedure, this column returns the number of the stored procedure. For more information, see sys.numbered_procedures Is

#execution#dmv
sys.dm_exec_xml_handles
DMVs

Returns information about active handles that have been opened by is specified, this function returns information about XML handles If 0 is specified, the function returns information about all XML handles for all sessions.

#execution#dmv
sys.dm_external_script_execution_stats
DMVs

2016 (13.x) and later Returns one row for each type of external script request. The external script requests are grouped by the supported external script language. One row is generated for each registered external script function. Arbitrary external script functions aren't recorded unless sent by a Name of the registered external script language.

#execution#dmv
sys.dm_external_script_requests
DMVs

2016 (13.x) and later Returns a row for each active worker account that is running an external script.

#execution#dmv
sys.dm_fts_active_catalogs
DMVs

Returns information on the full-text catalogs that have some population activity in progress on ID of the database that contains the active full-text ID of the active full-text catalog. Address of memory buffers allocated for the population activity related to this full-text catalog.

#full-text#dmv
sys.dm_fts_fdhosts
DMVs

Returns information on the current activity of the filter daemon host or hosts on the server Windows process ID of the filter daemon host. Type of document being processed by the filter daemon host, one Maximum number of threads in the filter daemon host. Number of batches that are being processed in the filter daemon On SQL Server and SQL Managed Instance, require

#os#dmv
sys.dm_fts_index_keywords_by_document
DMVs

Returns information about the document-level content of a full-text index associated with the sys.dm_fts_index_keywords_by_document is a dynamic management function. sys.dm_fts_index_keywords (Transact-SQL) sys.dm_fts_index_keywords_by_property (Transact-SQL) function.

#full-text#dmv
sys.dm_fts_index_population
DMVs

Returns information about the full-text index and semantic key phrase populations currently in ID of the database that contains the full-text ID of the full-text catalog that contains this full- ID of the table for which the full-text index is Memory address of the internal data structure that is used to represent an active population. Type of population.

#io#dmv
sys.dm_fts_memory_buffers
DMVs

Returns information about memory buffers belonging to a specific memory pool that are used as part of a full-text crawl or a full-text crawl range.

#full-text#dmv
sys.dm_fts_memory_pools
DMVs

Returns information about the shared memory pools available to the Full-Text Gatherer component for a full-text crawl or a full-text crawl range.

#full-text#dmv
sys.dm_fts_outstanding_batches
DMVs

Returns information about each full-text indexing batch.

#full-text#dmv
sys.dm_fts_population_ranges
DMVs

Returns information about the specific ranges related to a full-text index population currently Address of memory buffers allocated for activity related to this subrange of a full-text index population. Address of memory buffers representing the parent object of all ranges of population related to a full-text index. If the value is 1, this subrange is responsible f

#io#dmv
sys.dm_hadr_cluster_members
DMVs

If the Windows Server failover cluster (WSFC) node hosts a local instance of SQL Server that is enabled for Always On availability groups and has WSFC quorum, the view returns a row for each member that constitutes the quorum, and the state of that member. This set includes all nodes in the cluster (returned with the disk or file-share witness, if any.

#availability#dmv
sys.dm_io_cluster_shared_drives
DMVs

Analytics Platform System This view returns the drive name of each of the shared drives if the current server instance is a clustered server. If the current server instance is not a clustered instance it returns an empty The name of the drive (the drive letter) that represents an individual disk taking part in the cluster shared disk array. Column is not nullable.

#io#dmv
sys.dm_io_cluster_valid_path_names
DMVs

Returns information on all valid shared disks, including clustered shared volumes, for a SQL Server failover cluster instance. If the instance isn't clustered, an empty rowset is returned. Volume mount point or drive path that can be used as a root directory for database and log files. Not nullable. Current owner of the drive. For cluster shared volumes (CSV), the owner is the node which is hostin

#io#dmv
sys.dm_io_pending_io_requests
DMVs

Returns a row for each pending I/O request in SQL Server. Memory address of the IO request. Is not nullable. Type of pending I/O request. Is not nullable. Internal use only. Is not nullable. Indicates whether the I/O request is pending (1) or has been completed by the operating system (0). An I/O request can still be pending even when OS has completed the request, b

#io#dmv
sys.dm_io_virtual_file_stats
DMVs

Returns I/O statistics for data and log files. This dynamic management function replaces the Syntax for SQL Server and Azure SQL Database: Syntax for Azure Synapse Analytics: : SQL Server 2008 (10.0.x) and later, Azure SQL Database is int, with no default.

#io#dmv
sys.dm_os_buffer_descriptors
DMVs

Returns information about all the data pages that are currently in the SQL Server buffer pool. The output of this view can be used to determine the distribution of database pages in the buffer pool according to database, object, or type.

#os#dmv
sys.dm_os_child_instances
DMVs

Returns a row for each user instance that has been created from the parent server instance.

#os#dmv
sys.dm_os_cluster_nodes
DMVs

'Analytics Platform System (PDW) Returns one row for each node in the failover cluster instance configuration. If the current instance is a failover clustered instance, it returns a list of nodes on which this failover cluster instance (formerly "virtual server") has been defined. If the current server instance is not a failover clustered instance, it returns an empty rowset. Name of a node in the '

#os#dmv
sys.dm_os_dispatcher_pools
DMVs

Returns information about session dispatcher pools. Dispatcher pools are thread pools used by system components to perform background processing. The address of the dispatcher pool. dispatcher_pool_address The type of the dispatcher pool. Is not nullable. There are two types of dispatcher pools: Query the DMV for the full list The name of the dispatcher pool.

#os#dmv
sys.dm_os_enumerate_fixed_drives
DMVs

Starting with SQL Server 2017 (14.x) CU 1, volumes mounted to drive letters like For SQL Server 2019 (15.x) and previous versions, requires VIEW SERVER STATE permission on For SQL Server 2022 (16.x) and later versions, requires VIEW SERVER PERFORMANCE STATE Dynamic Management Views and Functions (Transact-SQL) I/O Related Dynamic Management Views and Functions (Transact-SQL)

#os#dmv
sys.dm_os_host_info
DMVs

2017 (14.x) and later Returns one row that displays operating system version information. The type of operating system.

#os#dmv
sys.dm_os_hosts
DMVs

Returns all the hosts currently registered in an instance of SQL Server. This view also returns the resources that are used by these hosts. Internal memory address of the host object. Type of hosted component. For example, SOSHOST_CLIENTID_SERVERSNI= SQL Server Native SOSHOST_CLIENTID_SQLOLEDB = SQL Server Native SOSHOST_CLIENTID_MSDART = Microsoft Data Access Total

#os#dmv
sys.dm_os_latch_stats
DMVs

Returns information about all latch waits organized by class. Number of waits on latches in this class. This counter is incremented at the start of a latch wait. Total wait time, in milliseconds, on latches in this class. This column is updated every five minutes during a latch wait and at the end of a latch wait.

#os#dmv
sys.dm_os_loaded_modules
DMVs

Returns a row for each module loaded into the server address space. Address of the module in the process. Version of the file. Appears in the following format: Version of the product. Appears in the following format: 1 = Module is a debug version of the loaded module. 1 = Module is a pre-release version of the loaded module.

#os#dmv
sys.dm_os_memory_brokers
DMVs

Allocations that are internal to SQL Server use the SQL Server memory manager. Tracking the difference between process memory counters from counters can indicate memory use from external components in the SQL Server memory space. Memory brokers fairly distribute memory allocations between various components within SQL Server, based on current and projected usage. Me

#os#dmv
sys.dm_os_memory_cache_clock_hands
DMVs

Returns the status of each hand for a specific cache clock. Address of the cache associated with the clock. Is not Name of the cache. Is not nullable. Type of cache store. There can be several caches of the Type of hand. Value is one of the following: Status of the clock.

#os#dmv
sys.dm_os_memory_cache_counters
DMVs

Returns a snapshot of the health of a cache in SQL Server. provides run-time information about the cache entries allocated, their use, and the source of Indicates the address (primary key) of the counters associated with a specific cache. Is not nullable. Specifies the name of the cache. Is not nullable.

#os#dmv
sys.dm_os_memory_cache_entries
DMVs

Returns information about all entries in caches in SQL Server. Use this view to trace cache entries to their associated objects. You can also use this view to obtain statistics on cache Address of the cache. Not nullable.

#os#dmv
sys.dm_os_memory_cache_hash_tables
DMVs

Returns a row for each active cache in the instance of SQL Server. Address (primary key) of the cache entry. Is not Name of the cache. Is not nullable. Type of cache. Is not nullable. Hash table number. A particular cache may have multiple hash tables that correspond to different hash Number of buckets in the hash table. Is not nullable. Number of buckets that are c

#os#dmv
sys.dm_os_memory_clerks
DMVs

Returns the set of all memory clerks that are currently active in the instance of SQL Server. Specifies the unique memory address of the memory clerk. This is the primary key column. Is not nullable. Specifies the type of memory clerk. Every clerk has a specific type, such as CLR Clerks MEMORYCLERK_SQLCLR. Is not nullable. Specifies the internally assigned name of t

#os#dmv
sys.dm_os_memory_nodes
DMVs

Allocations that are internal to SQL Server use the SQL Server memory manager. Tracking the difference between process memory counters from counters can indicate memory use from external components in the SQL Server memory space. Nodes are created per physical NUMA memory nodes.

#os#dmv
sys.dm_os_memory_objects
DMVs

Returns memory objects that are currently allocated by SQL Server. You can use to analyze memory use and to identify possible memory leaks. Address of the memory object. Is not nullable. Address of the parent memory object. Is nullable. : SQL Server 2008 (10.0.x) through SQL Server Number of pages that are allocated by this object.

#os#dmv
sys.dm_os_memory_pools
DMVs

Returns a row for each object store in the instance of SQL Server. You can use this view to monitor cache memory use and to identify bad caching behavior Memory address of the entry that represents the ID of a specific pool within a set of pools. Is not nullable. Type of object pool. Is not nullable. For more sys.dm_os_memory_clerks (Transact- System-assigned name o

#os#dmv
sys.dm_os_nodes
DMVs

An internal component named the SQLOS creates node structures that mimic hardware processor locality. These structures can be changed by using The following table provides information about these nodes. Description of the node state. Values are displayed with the mutually exclusive values first, followed by the combinable values. For example: Online, Thread Resource

#os#dmv
sys.dm_os_performance_counters
DMVs

Returns a row per performance counter maintained by the server. For information about each Category to which this counter belongs.

#os#dmv
sys.dm_os_process_memory
DMVs

Most memory allocations that are attributed to the SQL Server process space are controlled through interfaces that allow for tracking and accounting of those allocations. However, memory allocations might be performed in the SQL Server address space that bypasses internal memory management routines. Values are obtained through calls to the base operating system. The

#os#dmv
sys.dm_os_ring_buffers
DMVs

Each row represents a record in a ring buffer of a specific type. Identified for informational purposes only. Not supported. Future compatibility is not guaranteed. Not nullable. The type of the ring buffer record. Not nullable. The time when a ring buffer record was added, in milliseconds since the computer started. No

#os#dmv
sys.dm_os_schedulers
DMVs

Returns one row per scheduler in SQL Server where each scheduler is mapped to an individual processor. Use this view to monitor the condition of a scheduler or to identify runaway tasks. For more information about schedulers, see the Thread and Task Architecture Guide Memory address of the scheduler. Is not nullable.

#os#dmv
sys.dm_os_server_diagnostics_log_configurations
DMVs

Returns configuration information about the SQL Server failover cluster diagnostics log.

#os#dmv
sys.dm_os_stacks
DMVs

This dynamic management view is used internally by SQL Server to do the following: Keep track of debug data such as outstanding allocations. Assume or validate logic that is used by SQL Server components in places where the component assumes that a certain call has been made. Unique address for this stack allocation. Is not nullable. Each line represents a function

#os#dmv
sys.dm_os_sys_info
DMVs

Returns a miscellaneous set of useful information about the computer, and about the resources available to and consumed by SQL Server. Specifies the current CPU check count. CPU ticks are obtained from the processor's RDTSC counter. It's a monotonically increasing number. Not nullable. Specifies the number of milliseconds since the computer started. Not nullable. Sp

#os#dmv
sys.dm_os_sys_memory
DMVs

Returns memory information from the operating system. SQL Server is bounded by, and responds to, external memory conditions at the operating system level and the physical limits of the underlying hardware. Determining the overall system state is an important part of evaluating SQL Server memory usage. Total size of physical memory available to the operating system,

#os#dmv
sys.dm_os_tasks
DMVs

Returns one row for each task that is active in the instance of SQL Server. A task is the basic unit of execution in SQL Server. Examples of tasks include a query, a login, a logout, and system tasks like ghost cleanup activity, checkpoint activity, log writer, parallel redo activity. For more information about tasks, see the Thread and Task Architecture Guide State

#os#dmv
sys.dm_os_threads
DMVs

Returns a list of all SQL Server Operating System threads that are running under the SQL Server Memory address (Primary Key) of the thread. Indicates the thread initiator. 1 = SQL Server started the thread. 0 = Another component started the thread, such as an extended stored procedure from within SQL Server.

#os#dmv
sys.dm_os_virtual_address_dump
DMVs

Returns information about a range of pages in the virtual address space of the calling process. Pointer to the base address of the region of pages. Is Pointer to the base address of a range of pages allocated by the VirtualAlloc Windows API function. The page pointed to by the BaseAddress member is contained within this allocation range. Is not nullable. Protection

#os#dmv
sys.dm_os_wait_stats
DMVs

Returns information about all the waits encountered by threads that executed. You can use this aggregated view to diagnose performance issues with SQL Server and also with specific queries sys.dm_exec_session_wait_stats provides similar information by session.

#os#dmv
sys.dm_os_waiting_tasks
DMVs

Returns information about the wait queue of tasks that are waiting on some resource. For more information about tasks, see the Thread and task architecture guide ID of the session associated with the task.

#os#dmv
sys.dm_os_workers
DMVs

Returns a row for every worker in the system. For more information about workers, see the Thread and Task Architecture Guide 1 = Worker is running with preemptive scheduling. Any worker that is running external code is run 1 = Worker is running with lightweight pooling. For 1 = Worker is stuck trying to obtain a spin lock. If this bit is set, this might indicate a p

#os#dmv
sys.dm_resource_governor_resource_pools
DMVs

Returns information about the current resource pool state, the current configuration of resource pools, and resource pool statistics. The ID of the resource pool. Not nullable.

#resource-governor#dmv
sys.dm_sql_referenced_entities
DMVs

Returns one row for each user-defined entity that is referenced by name in the definition of the specified referencing entity in SQL Server.

#execution#dmv
sys.dm_sql_referencing_entities
DMVs

Returns one row for each entity in the current database that references another user-defined entity by name. A dependency between two entities is created when one entity, called the , appears by name in a persisted SQL expression of another entity, called the .

#execution#dmv
sys.dm_tran_aborted_transactions
DMVs

2019 (15.x) and later versions SQL database in Microsoft Fabric Returns information about unresolved, aborted transactions in the Database Engine instance. In Azure SQL Database, the values are unique within a single database or an elastic pool, but not within a logical server. The starting LSN of the aborted transaction. The ending LSN of the aborted transaction.

#io#dmv
sys.dm_tran_active_snapshot_database_transactions
DMVs

Unique identification number assigned for the transaction. The transaction ID is primarily used to identify the transaction in locking operations. Transaction sequence number. This is a unique sequence number that is assigned to a transaction when it starts. Transactions that do not generate version records and do not use snapshot scans will not receive a transaction Sequence number that indicates

#io#dmv
sys.dm_tran_active_transactions
DMVs

dynamic management view returns information about transactions for the instance.

#io#dmv
sys.dm_tran_commit_table
DMVs

Displays one row for each transaction that is committed for a table that is tracked by SQL management view, which is provided for supportability purposes and exposes the transaction-related information that change efficient persistent mapping from a database-specific transaction ID to the transaction's commit log sequence number (LSN) and commit timestamp.

#transactions#dmv
sys.dm_tran_current_snapshot
DMVs

Returns a virtual table that displays all active transactions at the time when the current snapshot transaction starts. If the current transaction is not a snapshot transaction, this the active transactions for the current snapshot transaction. Transaction sequence number of the active transaction. : Azure Synapse Analytics, Analytics Platform System The identifier

#transactions#dmv
sys.dm_tran_current_transaction
DMVs

Returns a single row that displays the state information of the transaction in the current Transaction ID of the current snapshot. Sequence number of the transaction that generates the Snapshot isolation state. This value is 1 if the transaction is started under snapshot isolation. Otherwise, the value is 0.

#io#dmv
sys.dm_tran_database_transactions
DMVs

dynamic management view returns information about transactions at the database level.

#io#dmv
sys.dm_tran_distributed_transaction_stats
DMVs

Returns information about MSDTC statistics in SQL Server. The number of transactions that were shut down before they were The highest number of aborted transactions since DTC last started. The number of aborted transactions that were manually shut down The number of committed transactions for the instance. The highest number of committed transactions since DTC last started. The number of committed

#io#dmv
sys.dm_tran_locks
DMVs

Returns information about currently active lock manager resources in SQL Server. Each row represents a currently active request to the lock manager for a lock that has been granted or is The columns in the result set are divided into two main groups: resource and request.

#transactions#dmv
sys.dm_tran_persistent_version_store_stats
DMVs

2019 (15.x) and later versions SQL database in Microsoft Fabric Returns information for accelerated database recovery (ADR) persistent version store (PVS) In Azure SQL Database, the values are unique within a single database or an elastic pool, but not within a The size of the off-row versions in PVS, in kilobytes. Does not include the size of row versions stored in- row.

#io#dmv
sys.dm_tran_session_transactions
DMVs

The identifier for the node that this distribution is on. On SQL Server and SQL Managed Instance, requires In Microsoft Fabric, membership in the or more privileged role is needed to query On SQL Database service objectives, and for databases in Microsoft Entra admin account, or membership in the is required. On all other SQL Database service objectives, permission on the database, or membership i

#io#dmv
sys.dm_tran_top_version_generators
DMVs

Returns a virtual table for the objects that are producing the most versions in the version store. returns the top 256 aggregated record lengths that are is an inefficient view to run because this view queries the version store, and the version store can be very large.

#io#dmv
sys.dm_tran_transactions_snapshot
DMVs

Transaction sequence number (XSN) of a snapshot transaction. Snapshot ID for each Transact-SQL statement started under read- committed using row versioning. This value is used to generate a transactionally consistent view of the database supporting each query that is being run under read-committed using row Transaction sequence number of a transaction that was active when the snapshot transaction

#io#dmv
sys.dm_tran_version_store
DMVs

Returns a virtual table that displays all version records in the version store. is inefficient to run because it queries the entire version store, and the version store can be very large. Each versioned record is stored as binary data together with some tracking or status information. Similar to records in database tables, version-store records are stored in 8192-

#io#dmv
sys.dm_tran_version_store_space_usage
DMVs

2016 (13.x) SP2 and later versions SQL database in Microsoft Fabric Returns a table that displays total space in used by version store records for each is efficient and not expensive to run, as it doesn't navigate through individual version store records, and returns aggregated version store space consumed in tempdb per database. Each versioned record is stored as binary data, together

#io#dmv
sys.dm_xtp_gc_queue_stats
DMVs

Outputs information about each garbage collection worker queue on the server, and various statistics about each. There is one queue per logical CPU. The main garbage collection thread (the Idle thread) tracks updated, deleted, and inserted rows for all transactions completed since the last invocation of the main garbage collection thread. When the garbage collectio

#execution#dmv