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

注释

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)