Condividi tramite


Metodo AvailabilityGroup.Failover

Performs a manual failover of this availability group to the server specified by the Parent property with no possibility of data loss.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
Public Sub Failover
'Utilizzo
Dim instance As AvailabilityGroup

instance.Failover()
public void Failover()
public:
void Failover()
member Failover : unit -> unit
public function Failover()

Osservazioni

This server should be participating in the availability group as a secondary replica. The result of the action will be to designate this server as the primary of this availability group.

Vedere anche

Riferimento

AvailabilityGroup Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo