Skip to content

Latest commit

 

History

History
70 lines (53 loc) · 4.53 KB

File metadata and controls

70 lines (53 loc) · 4.53 KB
title sys.dm_hadr_cluster_members (Transact-SQL)
description Returns a row for each of the members that constitute the WSFC quorum, and the state of each of them.
author rwestMSFT
ms.author randolphwest
ms.date 04/13/2026
ms.service sql
ms.subservice system-objects
ms.topic reference
ms.custom
ignite-2025
f1_keywords
sys.dm_hadr_cluster_members_TSQL
sys.dm_hadr_cluster_members
dm_hadr_cluster_members_TSQL
dm_hadr_cluster_members
helpviewer_keywords
sys.dm_hadr_cluster_members dynamic management view
Availability Groups [SQL Server], monitoring
Availability Groups [SQL Server], WSFC clusters
sys.dm_hadr_cluster_members catalog view
dev_langs
TSQL
monikerRange =azuresqldb-current || >=sql-server-2016 || >=sql-server-linux-2017 || =fabric-sqldb

sys.dm_hadr_cluster_members (Transact-SQL)

[!INCLUDE SQL Server Azure SQL Database-fabricsqldb]

If the Windows Server failover cluster (WSFC) node hosts a local instance of [!INCLUDE ssNoVersion] that is enabled for [!INCLUDE ssHADR] 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 CLUSTER_ENUM_NODE type by the Clusterenum function) and the disk or file-share witness, if any. The row returned for a given member contains information about the state of that member. For example, for a five node cluster with majority node quorum in which one node is down, when you query sys.dm_hadr_cluster_members from a server instance that is enabled for [!INCLUDE ssHADR] that resides on a node with quorum, sys.dm_hadr_cluster_members reflects the state of the down node as NODE_DOWN.

If the WSFC node has no quorum, the view returns no rows.

Use this dynamic management view to answer the following questions:

  • What nodes are currently running on the WSFC cluster?

  • How many more failures can the WSFC cluster tolerate before losing quorum in a majority-node case?

Tip

Beginning in [!INCLUDE ssSQL14], this dynamic management view supports Always On failover cluster instances (FCIs) in addition to availability groups (AGs).

Column name Data type Nullable Description
member_name nvarchar(256) No Member name, which can be a computer name, a drive letter, or a file share path.
member_type tinyint No The type of member, one of:

0 = WSFC node
1 = Disk witness
2 = File share witness
3 = Cloud witness
member_type_desc nvarchar(60) No Description of member_type, one of:

CLUSTER_NODE
DISK_WITNESS
FILE_SHARE_WITNESS
CLOUD_WITNESS
member_state tinyint No The member state, one of:

0 = Offline
1 = Online
member_state_desc nvarchar(60) No Description of member_state, one of:

UP
DOWN
number_of_quorum_votes int Yes Number of quorum votes that you can assign to this quorum member. For No Majority: Disk Only quorums, this value defaults to 0. For other quorum types, this value defaults to 1.
number_of_current_votes int Yes Number of quorum votes currently assigned to this quorum member. This value is dynamic and reflects the actual quorum value assigned by dynamic quorum and dynamic witness.

Remarks

[!INCLUDE dmv-cluster-column-display]

Permissions

For [!INCLUDE sssql19-md] and earlier versions, you need VIEW SERVER STATE permission on the server.

For [!INCLUDE sssql22-md] and later versions, you need VIEW SERVER PERFORMANCE STATE permission on the server.

Related content