MergePublication.MakePullSubscriptionWellKnown Method

Definition

Registers a merge pull subscription at the Publisher.

public:
 void MakePullSubscriptionWellKnown(System::String ^ subscriber, System::String ^ subscriptionDB, Microsoft::SqlServer::Replication::SubscriptionSyncType syncType, Microsoft::SqlServer::Replication::MergeSubscriberType subscriberType, float priority);
public void MakePullSubscriptionWellKnown (string subscriber, string subscriptionDB, Microsoft.SqlServer.Replication.SubscriptionSyncType syncType, Microsoft.SqlServer.Replication.MergeSubscriberType subscriberType, float priority);
member this.MakePullSubscriptionWellKnown : string * string * Microsoft.SqlServer.Replication.SubscriptionSyncType * Microsoft.SqlServer.Replication.MergeSubscriberType * single -> unit
Public Sub MakePullSubscriptionWellKnown (subscriber As String, subscriptionDB As String, syncType As SubscriptionSyncType, subscriberType As MergeSubscriberType, priority As Single)

Parameters

subscriber
String

The Subscriber where the pull subscription was created.

subscriptionDB
String

The subscription database in which the pull subscription was created.

syncType
SubscriptionSyncType

The option for how the subscription synchronization is performed.

subscriberType
MergeSubscriberType

A MergeSubscriberType object that specifies whether the subscription to register is a local or global subscription.

priority
Single

The weighting of the pull subscription to resolve conflicts when more than one change occurs in the same replicated data.

Remarks

Use EnumSubscriptions to determine if a subscription is already registered at the Publisher. If the registration exists, MakePullSubscriptionWellKnown generates an error at the server.

The MakePullSubscriptionWellKnown 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.

Calling MakePullSubscriptionWellKnown is equivalent to executing sp_addmergesubscription to register the pull subscription.

Applies to

See also