Freigeben über


ReplicationDatabases Collection

Dieses Feature wird in einer zukünftigen Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature beim Entwickeln neuer Anwendungen nicht, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird.

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

SQL-DMO-Objektmodell, das das aktuelle Objekt anzeigt

Properties

Count Property

Methods

Item Method

Refresh Method

ItemByID Method

Script Method (Replication Objects)

Hinweise

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

With the ReplicationDatabases collection, you can:

  • Enumerate user-defined databases on an instance of SQL Server.
  • Generate a Transact-SQL script to automate creation or other administration of all user-defined databases.

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)