다음을 통해 공유


DistributionDatabase Object

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

The DistributionDatabase object represents a database located at the Distributor used to store replication information. A Distributor can have multiple distribution databases.

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

Properties

AgentsStatus Property

LogFileSize Property

DataFile Property

LogFolder Property

DataFileSize Property

MaxDistributionRetention Property

DataFolder Property

MinDistributionRetention Property

DistributionCleanupTaskName Property

Name Property

HistoryCleanupTaskName Property

SecurityMode Property (DistributionDatabase, IntegratedSecurity)

HistoryRetention Property

StandardLogin Property

LogFile Property

StandardPassword Property

Methods

BeginAlter Method

Refresh Method

CancelAlter Method

Remove Method (Objects)

DoAlter Method

Script Method (Replication Objects)

주의

With the DistributionDatabase object, you can:

  • Create a new distribution database.
  • Change the properties of an existing distribution database.

To add a distribution database to the Distributor

  1. Create a new DistributionDatabase object.

  2. Set the Name property to the name of the new distribution database.

  3. Set the SecurityMode property as appropriate.

  4. If the SecurityMode property is set to SQLDMOSecurity_Normal, set the StandardLogin and StandardPassword properties as appropriate.

  5. Add the DistributionDatabase object to the DistributionDatabases collection of a connected Distributor object.

To alter an existing distribution database

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

  2. Use the BeginAlter method to mark the beginning of the changes.

  3. Set the DistributionDatabase properties to reflect the changes to the distribution database.

  4. Use the DoAlter method to submit the changes to Microsoft SQL Server.

[!참고] The DistributionDatabase object is compatible with instances of SQL Server version 7.0 and later. However, the DistributionDatabase2 object extends the functionality of the DistributionDatabase object for use with features that were introduced in SQL Server 2000.

참고 항목

참조

DistributionDatabase2 Object

도움말 및 정보

SQL Server 2005 지원 받기