Udostępnij za pośrednictwem


MergePublication.ValidateSubscription Method

Definition

Marks the specified subscription for validation during the next synchronization.

public:
 void ValidateSubscription(System::String ^ subscriber, System::String ^ subscriptionDB, Microsoft::SqlServer::Replication::ValidationOption validationOption);
public void ValidateSubscription (string subscriber, string subscriptionDB, Microsoft.SqlServer.Replication.ValidationOption validationOption);
member this.ValidateSubscription : string * string * Microsoft.SqlServer.Replication.ValidationOption -> unit
Public Sub ValidateSubscription (subscriber As String, subscriptionDB As String, validationOption As ValidationOption)

Parameters

subscriber
String

The Subscriber.

subscriptionDB
String

The subscription database.

validationOption
ValidationOption

The validation options.

Remarks

The result of the validation operation is written to the agent history, which is viewed using Replication Monitor.

Calling ValidateSubscription is equivalent to executing sp_validatemergesubscription.

The ValidateSubscription method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.

Applies to

See also