Export (0) Print
Expand All

AvailabilityGroup.FailoverWithPotentialDataLoss Method

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public void 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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft