MergePublication.MakePullSubscriptionWellKnown(String, String, SubscriptionSyncType, MergeSubscriberType, Single) MergePublication.MakePullSubscriptionWellKnown(String, String, SubscriptionSyncType, MergeSubscriberType, Single) MergePublication.MakePullSubscriptionWellKnown(String, String, SubscriptionSyncType, MergeSubscriberType, Single) 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);
Public Sub MakePullSubscriptionWellKnown (subscriber As String, subscriptionDB As String, syncType As SubscriptionSyncType, subscriberType As MergeSubscriberType, priority As Single)
Parameters
subscriber
String String String

The Subscriber where the pull subscription was created.

subscriptionDB
String String String

The subscription database in which the pull subscription was created.

syncType
SubscriptionSyncType SubscriptionSyncType SubscriptionSyncType

The option for how the subscription synchronization is performed.

subscriberType
MergeSubscriberType MergeSubscriberType MergeSubscriberType

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

priority
Single Single 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