다음을 통해 공유


DistributionPublisher Object

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

The DistributionPublisher object represents a Publisher using this Distributor for replication.

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

Properties

DistributionDatabase Property

Name Property

DistributionWorkingDirectory Property

ThirdParty Property

Enabled Property

TrustedDistributorConnection Property

Methods

BeginAlter Method

EnumMergeAgentSessionDetails Method

CancelAlter Method

EnumMergeAgentSessions Method

DoAlter Method

EnumSnapshotAgentSessionDetails Method

EnumAgentErrorRecords Method

EnumSnapshotAgentSessions Method

EnumDistributionAgentSessionDetails Method

GetAgentsStatus Method (DistributionPublication, DistributionPublisher)

EnumDistributionAgentSessions Method

Refresh Method

EnumLogReaderAgentSessionDetails Method

Remove Method (Objects)

EnumLogReaderAgentSessions Method

Script Method (Replication Objects)

주의

With the DistributionPublisher object, you can:

  • Add a Publisher to the Distributor.
  • Change the properties of an existing Publisher.

To add a Publisher to the Distributor

  1. Create a new DistributionPublisher object.

  2. Set the Name property to the server name of the Publisher.

  3. Set the DistributionDatabase property.

  4. Set the DistributionWorkingDirectory property.

  5. Add the DistributionPublisher object to the DistributionPublishers collection of a connected Distributor object.

To alter an existing Publisher

  1. Get a DistributionPublisher object from the DistributionPublishers collection of a connected Distributor object.

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

  3. Set the DistributionPublisher properties to reflect the changes to the Publisher.

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

Note   The DistributionPublisher object is compatible with instances of SQL Server version 7.0 and later. However, the DistributionPublisher2 object extends the functionality of the DistributionPublisher object for use with features that were introduced in SQL Server 2000.

참고 항목

참조

DistributionPublisher2 Object

도움말 및 정보

SQL Server 2005 지원 받기