次の方法で共有


TransArticles Collection

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

The TransArticles collection contains TransArticle objects that reference the articles defined in a Microsoft SQL Server transactional or snapshot replication publication.

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

Properties

Count Property

 

Methods

Add Method

Refresh Method

Item Method

Remove Method (Collections)

ItemByID Method

 

解説

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)