FailoverData Class

Definition

AlwaysOn Failover Cluster Data Three kinds of servers are proposed in the class: EntryPoint Server : the replica from which the wizard starts. It could be a primary or secondary server. Primary Server : the primary replica of an availability group. Target (or new primary) Server : the new primary server after failover. It must be a secondary replica.

C#
public class FailoverData
Inheritance
FailoverData

Constructors

Properties

AvailabilityGroup

AG Data From the EntryPointServer

AvailabilityGroupName

Current AG Name

AvailabilityReplicas

Properties of Replicas of the AG

EntryPointServer
EntryPointServerConnection

Gets or sets the EntryPoint server connection. The connection for the server instance from which the wizard starts. If the wizard starts from the primary replica of an Availability Group in the primary server, then the connection is for the primary replica; otherwise, it is for the secondary replica.

EntryPointServerTrueName
PrimaryReplica

Primary Replica

PrimaryServer

Primary Server

PrimaryServerInstanceName

Primary Server Instance Name

TargetAvailabilityGroup

Target AG Data

TargetAvailabilityReplica

Target Replica

TargetReplicaFailoverCategory

Failover Category This property should be determined by viewData

TargetReplicaName

Target Replica Name

TargetServer

Target Server If failover from a Secondary Replica, TargetServer should be set to this.EntryPointServer If failover from a Primary Replica, TargetServer should be new Smo.Server(this.TargetServerConnection)

TargetServerConnection

Target Servcer Connection If failover from a Secondary Replica, TargetServerConnection should be set to this.EntryPointServerConnection If failover from a Primary Replica, TargetServerConnection should be set to selected SecondaryReplica.Connection

Methods

ResetTargetServer()

Method to reset Target Server

SetEntryPointServerToNull()

Method to clean EntryPointServer

Applies to

Proizvod Verzije
Microsoft.SqlServer.SqlManagementObjects 160.2004021.0