次の方法で共有


MergePublication Object

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The MergePublication object represents a merge publication. A publication contains one or more articles (tables) that contain the replicated data.

現在のオブジェクトを表す SQL-DMO オブジェクト モデル

Properties

CentralizedConflicts Property

Priority Property

DynamicFilters Property

PublicationAttributes Property

Enabled Property

RetentionPeriod Property

HasSubscription Property

SnapshotAvailable Property

ID Property

SnapshotJobID Property

Name Property

SnapshotMethod Property

Methods

BeginAlter Method

GenerateFilters Method

CancelAlter Method

GrantPublicationAccess Method

DoAlter Method

RefreshChildren Method

EnumAllSubsetFilters Method

ReInitializeAllSubscriptions Method

EnumGeneratedSubsetFilters Method

Remove Method (Objects)

EnumPublicationAccesses Method

RevokePublicationAccess Method

EnumPublicationReferences Method

Script Method (Replication Objects)

EnumSubscriptions Method

 

解説

With the MergePublication object, you can:

  • Create a new merge publication.
  • Change the properties of an existing merge publication.

To create a merge publication

  1. Create a new MergePublication object.

  2. Set the Name property.

  3. Set the PublicationAttributes property as appropriate.

    • To enable push subscriptions, use SQLDMOPubAttrib_AllowPush.
    • To enable pull subscriptions, use SQLDMOPubAttrib_AllowPull.
    • To enable anonymous subscriptions, use SQLDMOPubAttrib_AllowPull and SQLDMOPubAttrib_AllowAnonymous.
    • To enable Internet subscriptions, use SQLDMOPubAttrib_InternetEnabled.
  4. Add the MergePublication object to the MergePublications collection of a connected ReplicationDatabase object.

To alter a merge publication

  1. Get a MergePublication object from the MergePublications collection of a connected ReplicationDatabase object.

  2. Use the BeginAlter method to mark the beginning of the changes.

  3. Set the MergePublication properties to reflect the changes to the merge publication.

  4. Use the DoAlter method to submit the changes to Microsoft SQL Server.

ms140438.note(ja-jp,SQL.90).gifメモ :
The MergePublication object is compatible with instances of SQL Server versions 7.0 and later. However, the MergePublication2 object extends the functionality of the MergePublication object for use with features that were introduced in SQL Server 2000.

参照

関連項目

MergePublication2 Object

ヘルプおよび情報

SQL Server 2005 の参考資料の入手