Rediger

Del via


sys.dm_hadr_availability_replica_cluster_nodes (Transact-SQL)

Applies to: SQL Server

Returns a row for every availability replica (regardless of join state) of the Always On availability groups in the Windows Server Failover Clustering (WSFC) cluster.

Column name Data type Description
group_name nvarchar(256) Name of the availability group.
replica_server_name nvarchar(256) Name of the instance of SQL Server hosting the replica.
node_name nvarchar(256) Name of the cluster node.

Remarks

In a Windows Server Failover Cluster (WSFC), the cluster columns display the Windows cluster details. In cases where there's no Windows cluster, such as read-scale availability groups, or availability groups on Linux, columns related to the cluster might display data about an internal default cluster. These columns are for internal use only and can be disregarded.

Permissions

For SQL Server 2019 (15.x) and previous versions, requires VIEW SERVER STATE permission on the server.

For SQL Server 2022 (16.x) and later versions, requires VIEW SERVER PERFORMANCE STATE permission on the server.