Udostępnij za pośrednictwem


ReplicationServer.DistributionDatabases Property

Definition

Gets the distribution databases defined on the replication server.

public:
 property Microsoft::SqlServer::Replication::DistributionDatabaseCollection ^ DistributionDatabases { Microsoft::SqlServer::Replication::DistributionDatabaseCollection ^ get(); };
public Microsoft.SqlServer.Replication.DistributionDatabaseCollection DistributionDatabases { get; }
member this.DistributionDatabases : Microsoft.SqlServer.Replication.DistributionDatabaseCollection
Public ReadOnly Property DistributionDatabases As DistributionDatabaseCollection

Property Value

A DistributionDatabaseCollection object that represents all the distribution databases that exist on the replication server.

Remarks

A DistributionDatabase object in the returned DistributionDatabaseCollection can be accessed using either an integer or a string indexer.

The DistributionDatabase property can only be retrieved by a member of the sysadmin fixed server role at the Distributor or a member of the db_owner fixed database role in the distribution database.

Applies to