MergePublication.MakePullSubscriptionWellKnown メソッド

定義

マージ プル サブスクリプションをパブリッシャーに登録します。

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)

パラメーター

subscriber
String

プル サブスクリプションが作成されたサブスクライバーです。

subscriptionDB
String

プル サブスクリプションが作成されたサブスクリプション データベースです。

syncType
SubscriptionSyncType

サブスクリプションの同期方法のオプションです。

subscriberType
MergeSubscriberType

登録するサブスクリプションがローカル サブスクリプションかグローバル サブスクリプションかを指定する MergeSubscriberType オブジェクトです。

priority
Single

複数の変更が同一のレプリケートされたデータに発生した場合の競合を解決するためのプル サブスクリプションの重み付けです。

注釈

パブリッシャー側でサブスクリプションが既に登録されているかどうかを確認するには、EnumSubscriptions を使用します。 登録されている場合は、MakePullSubscriptionWellKnown によってサーバーでエラーが生成されます。

メソッドは MakePullSubscriptionWellKnown 、パブリッシャーの sysadmin 固定サーバー ロールのメンバー、またはパブリケーション データベースの固定データベース ロール のメンバー によってのみ呼び出db_owner。

の呼び出し MakePullSubscriptionWellKnown は、プル サブスクリプションを登録するために sp_addmergesubscription を実行することと同じです。

適用対象

こちらもご覧ください