MergePublication.MakePullSubscriptionWellKnown メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
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)
パラメーター
- subscriber
- String
プルサブスクリプションが作成されたサブスクライバーです。
- subscriptionDB
- String
プルサブスクリプションが作成されたサブスクリプションデータベースです。
- syncType
- SubscriptionSyncType
サブスクリプション同期の実行方法に関するオプションです。
- subscriberType
- MergeSubscriberType
登録のサブスクリプションがローカル購読かグローバルかを指定する MergeSubscriberType オブジェクト。
- priority
- Single
同じ複製データ内で複数の変更が起きた場合の競合を解決するためにプルサブスクリプションの重み付けを行います。
注釈
EnumSubscriptionsを使って、Publisherに登録されているサブスクリプションがあるかどうかを確認しましょう。 登録が存在する場合、 MakePullSubscriptionWellKnown サーバーでエラーを発生させます。
MakePullSubscriptionWellKnownメソッドは、Publisherのsysadmin固定サーバーロールのメンバーか、publication databaseのdb_owner固定データベース役割のメンバーのみが呼び出せます。
MakePullSubscriptionWellKnownを呼び出すことは、プルサブスクリプションを登録するためにsp_addmergesubscriptionを実行するのと同等です。