ReplicationDatabases Collection (SQL-DMO)

The ReplicationDatabases collection contains ReplicationDatabase objects enumerating the user-defined databases.

Remarks

Microsoft® SQL Server™ replication publications derive article data from only user-defined databases. To simplify replication configuration when using SQL-DMO, SQL-DMO implements the ReplicationDatabases collection, which lists user-defined databases.

With the ReplicationDatabases collection, you can:

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

Set oReplicationDatabase = _
oSQLServer.Replication.oReplicationDatabases("Northwind")

Or:

Set oReplicationDatabase = _
oSQLServer.Replication.oReplicationDatabases(1)

Methods
Item Method Refresh Method
ItemByID Method Script Method (Replication Objects)

Properties

Count Property

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.