AvailabilityGroup.Failover 方法
Performs a manual failover of this availability group to the server specified by the Parent property with no possibility of data loss.
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Sub Failover
'用途
Dim instance As AvailabilityGroup
instance.Failover()
public void Failover()
public:
void Failover()
member Failover : unit -> unit
public function Failover()
備註
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.