AvailabilityGroupData 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.
Availability Group Data this Object contains info for an Availability Group
public class AvailabilityGroupData
type AvailabilityGroupData = class
Public Class AvailabilityGroupData
- Inheritance
-
AvailabilityGroupData
Availability |
ctor: the base ctor set replicas = null set listener = new listener set backupreference = default secondary set Sync option = full |
Availability |
the ctor for New AG, only Service Connection is passed |
Availability |
AG listener object |
Availability |
All replicas - including the primary |
Availability |
AG State flag |
Backup |
Network share location in Linux format used for storing backup files when user chooses to do backup/restore Data Synchronization |
Backup |
Network share location in Windows format used for storing backup files when user chooses to do backup/restore Data Synchronization |
Backup |
Availability Group BackUp Preference |
Cluster |
Windows failover cluster DNS name |
Cluster |
Gets or sets the cluster type |
Data |
Secondary replicas excluding the ConfigurationOnly replica |
Existing |
Databases that are already part of existing AvailabilityGroup |
Group |
Availability Group name |
Is |
Gets or sets a flag indicating whether to create a BASIC or ADVANCED Availability Group. |
Is |
Determines if PrimaryServer is actually the primary. Returns true if yes, false otherwise. |
Is |
Gets a boolean value indicating whether the replicas of the availability group are on different OS platforms. |
Is |
Gets or sets a flag indicating whether a DB Health event triggers Failover to a auto-failover synchronous replica. |
Is |
Gets or sets a flag indicating whether per-database DTC support is enabled. |
Is |
Determines if the primary connection is part of cluster quorum. Returns true if yes, false otherwise. |
New |
Databases that are being added to AvailabilityGroup |
Perform |
Data Synchronization preference |
Primary |
Primary Server object property |
Required |
Gets or sets the required copies to commit |
Secondaries |
Secondary replicas |
Sql |
This property is used specially for creating a listener. We want the step of creating a AG listener not to include in the step of creating AG. However, The creation of a listener needs such info. |
Will |
Checks to see if DataSynchronizationOption is AutomaticSeeding |
Will |
Checks to see if DataSyncronization is set to full |
Will |
Checks to see if DataSynchronizationOption is Full or AutomaticSeeding |
Will |
Checks to see if DataSynchronizationOption is Full, JoinOnly or AutomaticSeeding |
Add |
The method used to add a database to the AvailabilityGroup |
Add |
The method used to add a database to the AvailabilityGroup |
Get |
Get the backup location for the server |
Get |
Return the Login Names Method behavior based on the input parameter:
|
Get |
retrieve the total size of datafiles and logs of the primary server |
Has |
Helper method for checking View Server State Permissiom |
Get |
|
Get |
Product | Versions |
---|---|
Microsoft.SqlServer.SqlManagementObjects | 160.2004021.0 |