| title | sys.dm_hadr_availability_replica_cluster_states (Transact-SQL) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.custom | |||||
| ms.date | 06/10/2016 | ||||
| ms.prod | sql-non-specified | ||||
| ms.prod_service | database-engine | ||||
| ms.service | |||||
| ms.component | dmv's | ||||
| ms.reviewer | |||||
| ms.suite | sql | ||||
| ms.technology |
|
||||
| ms.tgt_pltfrm | |||||
| ms.topic | language-reference | ||||
| f1_keywords |
|
||||
| dev_langs |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | 2e0dd780-6a71-4f4b-b7f7-6e063bec71d6 | ||||
| caps.latest.revision | 12 | ||||
| author | MikeRayMSFT | ||||
| ms.author | mikeray | ||||
| manager | jhubbard | ||||
| ms.workload | Inactive |
[!INCLUDEtsql-appliesto-ss2012-xxxx-xxxx-xxx-md]
Returns a row for each Always On availability replica (regardless of its join state) of all Always On availability groups (regardless of replica location) in the Windows Server Failover Clustering (WSFC) cluster.
| Column name | Data type | Description |
|---|---|---|
| replica_id | uniqueidentifier | Unique identifier of the availability replica. |
| replica_server_name | nvarchar(256) | Name of the instance of [!INCLUDEssNoVersion] hosting the replica. |
| group_id | uniqueidentifier | Unique identifier of the availability group. |
| join_state | tinyint | 0 = Not joined 1 = Joined, standalone instance 2 = Joined, failover cluster instance |
| join_state_desc | nvarchar(60) | NOT_JOINED JOINED_STANDALONE_INSTANCE JOINED_FAILOVER_CLUSTER_INSTANCE |
Requires VIEW SERVER STATE permission on the server.