FailoverData Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public class FailoverData
type FailoverData = class
Public Class FailoverData
- Inheritance
-
FailoverData
Availability |
AG Data From the EntryPointServer |
Availability |
Current AG Name |
Availability |
Properties of Replicas of the AG |
Entry |
|
Entry |
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. |
Entry |
|
Primary |
Primary Replica |
Primary |
Primary Server |
Primary |
Primary Server Instance Name |
Target |
Target AG Data |
Target |
Target Replica |
Target |
Failover Category This property should be determined by viewData |
Target |
Target Replica Name |
Target |
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) |
Target |
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 |
Reset |
Method to reset Target Server |
Set |
Method to clean EntryPointServer |
Proizvod | Verzije |
---|---|
Microsoft.SqlServer.SqlManagementObjects | 160.2004021.0 |