AvailabilityGroup.FailoverWithPotentialDataLoss 方法

Performs a forced failover of this availability group to the server specified by the Parent property with the possibility of data loss if the databases on the replica are not synchronized with the primary.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub FailoverWithPotentialDataLoss
用法
Dim instance As AvailabilityGroup

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

注释

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.

请参阅

参考

AvailabilityGroup 类

Microsoft.SqlServer.Management.Smo 命名空间