Condividi tramite


ReplicationDatabase Object

Questa funzionalità verrà rimossa in una delle prossime versioni di Microsoft SQL Server. Evitare di utilizzare questa funzionalità in un nuovo progetto di sviluppo e prevedere interventi di modifica nelle applicazioni in cui è attualmente implementata.

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

Modello di oggetti SQL-DMO in cui è visualizzato l'oggetto corrente

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)

Osservazioni

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.

Vedere anche

Riferimento

ReplicationDatabase2 Object

Guida in linea e informazioni

Assistenza su SQL Server 2005