共用方式為


ReplicationServer.HasRemotePublisher Property

Definition

Gets whether or not the currently connected instance of Microsoft SQL Server is a Distributor with a remote Publisher.

public:
 property bool HasRemotePublisher { bool get(); };
public bool HasRemotePublisher { get; }
member this.HasRemotePublisher : bool
Public ReadOnly Property HasRemotePublisher As Boolean

Property Value

A Boolean value that specifies whether or not the Distributor has a remote Publisher.

If true, the server is a Distributor with a remote Publisher.

If false, the Publisher is not installed remotely, or the server is not a Distributor.

Remarks

The HasRemotePublisher property can be retrieved by members of the public fixed database role.

The HasRemotePublisher property is equivalent to the sp_get_distributor (Transact-SQL) stored procedure.

Applies to