Server.JoinAvailabilityGroup Method
Definition
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.
Overloads
JoinAvailabilityGroup(String) |
This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group. |
JoinAvailabilityGroup(String, AvailabilityGroupClusterType) |
This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group. |
JoinAvailabilityGroup(String)
This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group.
public void JoinAvailabilityGroup (string availabilityGroupName);
member this.JoinAvailabilityGroup : string -> unit
Public Sub JoinAvailabilityGroup (availabilityGroupName As String)
Parameters
- availabilityGroupName
- String
Applies to
JoinAvailabilityGroup(String, AvailabilityGroupClusterType)
This method is called on a secondary replica that has been added to an Availability Group from a primary to complete the handshake. Upon successful execution the instance will become a functioning replica in the availability group.
public void JoinAvailabilityGroup (string availabilityGroupName, Microsoft.SqlServer.Management.Smo.AvailabilityGroupClusterType availabilityGroupClusterType);
member this.JoinAvailabilityGroup : string * Microsoft.SqlServer.Management.Smo.AvailabilityGroupClusterType -> unit
Public Sub JoinAvailabilityGroup (availabilityGroupName As String, availabilityGroupClusterType As AvailabilityGroupClusterType)
Parameters
- availabilityGroupName
- String
- availabilityGroupClusterType
- AvailabilityGroupClusterType