The TransPublications collection contains TransPublication objects referencing Microsoft® SQL Server™ transactional and snapshot replication publications.
With the TransPublications object, you can:
To remove a transactional or snapshot replication publication
Note Removing a publication by using the Remove method of a TransPublication or MergePublication object removes all article definitions and all known subscription entries. Removing a publication does not remove a replicated copy of the publication articles at any Subscriber.
When using the Item or Remove method, the TransPublications collection supports member identification using either name or ordinal reference syntax. For example:
Set oTransPublication = _
oReplicationDatabase.TransPublications("[Northwind_Snap]")
Or:
Set oTransPublication = oReplicationDatabase.TransPublications(7)
Add Method | Script Method (Replication Objects) |
Item Method | Refresh Method |
ItemByID Method | Remove Method (Collections) |