AvailabilityReplicaOperationalState Enum

Definition

The state of the replica's readiness to process client requests for all databases replicas in the availability group residing on it.

[System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Smo.AvailabilityReplicaOperationalStateConverter))]
public enum AvailabilityReplicaOperationalState
[<System.ComponentModel.TypeConverter(typeof(Microsoft.SqlServer.Management.Smo.AvailabilityReplicaOperationalStateConverter))>]
type AvailabilityReplicaOperationalState = 
Public Enum AvailabilityReplicaOperationalState
Inheritance
AvailabilityReplicaOperationalState
Attributes

Fields

Name Value Description
PendingFailover 0

A failover command is in progress, the replica cannot receive client requests.

Pending 1

The replica is pending a switch to primary role. This is a transient state.

Online 2

The replica is ready to client requests.

Offline 3

The availability group currently has no primary, the replica cannot receive client requests.

Failed 4

The replica is unable to communicate with the Windows cluster, the replica cannot receive client requests.

FailedNoQuorum 5

The availability group has lost quorum, the replica cannot receive client requests.

Unknown 6

The operational state of this replica is unknown, the availability replica object referes to a remote instance.

Applies to