다음을 통해 공유


DistributionDatabases Collection

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The DistributionDatabases collection contains DistributionDatabase objects that expose the properties of Microsoft SQL Server databases used by the replication Distributor for replicated image storage and other tasks.

현재 개체를 보여 주는 SQL-DMO 개체 모델

Methods

Add Method

Remove Method (Collections)

Item Method

Script Method (Replication Objects)

Refresh Method

 

주의

The DistributionDatabases collection stores a list of distribution databases available at the Distributor. A Publisher using the Distributor selects a single distribution database for each publication managed by the Distributor.

With the DistributionDatabases collection, you can:

  • Create a SQL Server database for Distributor use.
  • Generate a Transact-SQL command batch to script database creation for all databases used by a Distributor.
  • Remove a distribution database.

To remove a distribution database from the Distributor

  1. Get a DistributionDatabase object from the DistributionDatabases collection of a connected Distributor object.

  2. Use the Remove method.