共用方式為


DistributionPublisher.HeterogeneousLogReaderAgentExists 屬性

Gets a value that indicates whether the Log Reader Agent job exists for the non-SQL Server Publisher.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public ReadOnly Property HeterogeneousLogReaderAgentExists As Boolean 
    Get
'用途
Dim instance As DistributionPublisher 
Dim value As Boolean 

value = instance.HeterogeneousLogReaderAgentExists
public bool HeterogeneousLogReaderAgentExists { get; }
public:
property bool HeterogeneousLogReaderAgentExists {
    bool get ();
}
member HeterogeneousLogReaderAgentExists : bool
function get HeterogeneousLogReaderAgentExists () : boolean

屬性值

型別:System.Boolean
true if the agent job exists; otherwise, false.

備註

The HeterogeneousLogReaderAgentExists property is only supported for non-SQL Server Publishers. For SQL Server Publishers, use LogReaderAgentExists.

The HeterogeneousLogReaderAgentExists property can only be retrieved by members of the sysadmin fixed server role at the Distributor or by members of the db_owner fixed database role on the distribution database.

Retrieving the HeterogeneousLogReaderAgentExists property is equivalent to executing sp_helplogreader_agent.

The HeterogeneousLogReaderAgentExists property is a read/write property.

請參閱

參考

DistributionPublisher 類別

Microsoft.SqlServer.Replication 命名空間