MergePublication.ValidateSubscription Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.