다음을 통해 공유


ReplicationMonitor.EnumPublishers Method

Returns information on the Publishers that use the monitored Distributor.

네임스페이스: Microsoft.SqlServer.Replication
어셈블리: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

구문

‘선언
Public Function EnumPublishers As DataSet
public DataSet EnumPublishers ()
public:
DataSet^ EnumPublishers ()
public DataSet EnumPublishers ()
public function EnumPublishers () : DataSet

반환 값

A DataSet object that contains the following columns.

Column

Data type

Description

name

String

Name of Publisher.

distribution_db

String

Distribution database for the specified Publisher.

security_mode

Int32

Security mode used by the replication agent in a push subscription to connect to the Publisher.

login

String

Login name used by the replication agent in a push subscription to connect to the Publisher.

password

String

Password returned (in simple encrypted form). Password is null for users other than sysadmin.

active

Boolean

Whether a remote Publisher is using the local server as a Distributor:

working_directory

String

Name of the working directory.

trusted

Boolean

If the password is required when the Publisher connects to the Distributor. For Microsoft SQL Server 2005, this should always return 0, which means that the password is required.

thirdparty_flag

Boolean

Whether the publication is enabled by SQL Server or by a third-party application:

false = Oracle, or Oracle Gateway Publisher.

true = Publisher has been integrated with SQL Server using a third-party application.

publisher_type

String

Type of Publisher, which can be one of the following:

MSSQLSERVER

ORACLE

ORACLE GATEWAY

publisher_data_source

String

Name of the OLE DB data source on the Publisher.

주의

You should commit any property changes to the ReplicationMonitor object before calling this method because properties of this object may need to be loaded if they have not been loaded already.

If a Distributor is not installed or the distribution database is not created, this method throws an exception.

The EnumPublishers method can only be retrieved by members of the sysadmin fixed server role at the Distributor, by members of the db_owner or replmonitor fixed database role in the distribution database, or by users in the publication access list (PAL) of a publication that uses the Distributor.

Retrieving EnumPublishers is equivalent to executing sp_helpdistpublisher(Transact-SQL).

This namespace, class, or member is supported only in version 2.0 of the .NET Framework.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

ReplicationMonitor Class
ReplicationMonitor Members
Microsoft.SqlServer.Replication Namespace

관련 자료

How to: Programmatically Monitor Replication (RMO Programming)