Condividi tramite


TransArticles Collection

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 TransArticles collection contains TransArticle objects that reference the articles defined in a Microsoft SQL Server transactional or snapshot replication publication.

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

Properties

Count Property

 

Methods

Add Method

Refresh Method

Item Method

Remove Method (Collections)

ItemByID Method

 

Osservazioni

With the TransArticles collection, you can:

  • Create an article in a transactional or snapshot replication publication.
  • Remove an article from a transactional or snapshot replication publication.

For more information about creating transactional or snapshot replication articles by using the TransArticle object and TransArticles collection, see the TransArticle Object section.

To remove an article from a transactional or snapshot replication publication

  • Use the Remove method of the TransArticles collection, as in:

    oTransPublication.TransArticles.Remove("[Orders]")
    

When using the Item or Remove method, the TransArticles collection supports member identification using either name or ordinal reference syntax. For example:

Set oTransArticle = oTransPublication.TransArticles("[Products]")

Or:

Set oTransArticle = oTransPublication.TransArticles(7)