ReplicationDatabase Object

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The ReplicationDatabase object represents a user database that can participate in replication.

显示当前对象的 SQL-DMO 对象模型

Properties

AllowMergePublication Property

EnableTransPublishing Property

DBOwner Property

Name Property

EnableMergePublishing Property

 

Methods

DisableMergeSubscription Method

EnumConflictTables Method

DisableTransSubscription Method

EnumInitialAccesses Method

EnableMergeSubscription Method

RefreshChildren Method

EnableTransSubscription Method

Script Method (Replication Objects)

备注

With the ReplicationDatabase object, you can:

  • Enable and disable transactional publishing.
  • Enable and disable merge publishing.
  • Note   The ReplicationDatabase object is compatible with instances of Microsoft SQL Server versions 7.0 and later. However, the ReplicationDatabase2 object extends the functionality of the ReplicationDatabase object for use with features that were introduced in SQL Server 2000.

To enable transactional publishing for a database

  • Set the EnableTransPublishing property of a connected ReplicationDatabase object to TRUE.

To disable transactional publishing for a database

  • Set the EnableTransPublishing property of a connected ReplicationDatabase object to FALSE.

To enable merge publishing for a database

  • Set the EnableMergePublishing property of a connected ReplicationDatabase object to TRUE.

To disable merge publishing for a database

  • Set the EnableMergePublishing property of a connected ReplicationDatabase object to FALSE.

请参阅

参考

ReplicationDatabase2 Object

帮助和信息

获取 SQL Server 2005 帮助