AddReplicaDatabaseExistenceValidator Class

Definition

Validates that databases existing in an AvailabilityGroup when adding a replica to an AvailabiltyGroup do not exist on the secondary replica

C#
public class AddReplicaDatabaseExistenceValidator : Microsoft.SqlServer.Management.HadrModel.DatabaseExistenceValidator
Inheritance
AddReplicaDatabaseExistenceValidator

Constructors

Properties

AvailabilityGroupData

The availability group data.

(Inherited from DatabaseExistenceValidator)
DatabasesToValidate

List of databases to validate

(Inherited from DatabaseExistenceValidator)
Name

validator name

(Inherited from Validator)

Methods

UpdateStatus(ValidatorEventArgs)

Send validation progress event

(Inherited from Validator)
Validate(IExecutionPolicy, ScenarioValidatorHandler)

If the optional delegate is passed, then it is called with the execution policy. Otheriwse, the following logic is executed While the policy has not expired, the derived validator will keep doing it validation with a back off interval between every validation The policy will expire due to following reason 1.the policy reaches its max times of trying 2.the validator set the policy to be expired due to some fatal exception 3.the validator set the policy to be exproed due to successful validation

(Inherited from Validator)
Validate(IExecutionPolicy)

Validates if a selecteddatabase already exists on the secondary replica.

(Inherited from DatabaseExistenceValidator)

Events

ValidatorProgressEventHandler

Validator progress event handler

(Inherited from Validator)

Applies to

Tuote Versiot
Microsoft.SqlServer.SqlManagementObjects 160.2004021.0