다음을 통해 공유


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 네임스페이스