Returns information on Queue Reader Agent jobs at the monitored Distributor.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
'Declaration PublicFunctionEnumQueueReaderAgentsAsDataSet 'Usage DiminstanceAsReplicationMonitorDimreturnValueAsDataSetreturnValue = instance.EnumQueueReaderAgents()
Return ValueType: System.Data.DataSet
A DataSet object that contains the following columns.
Name of the distribution database.
Replication agent job name.
The running status:
1 = Start
2 = Succeed
3 = In progress
4 = Idle
5 = Retry
6 = Fail
Date and time of the last agent execution.
Date and time that the session was logged.
Elapsed time of the session, in seconds.
Message text logged by the agent.
Total number of transactions delivered in the session.
Total number of commands delivered in the session.
Average number of commands per transaction delivered in the session.
Average number of commands delivered per second.
The time, in milliseconds, between a command being added to the queue and being committed to the publication database.
Identifier of the SQL Server Agent job starting the replication agent.
Agent job identifier.
Timestamp of the most recent agent run.
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.
The method can only be called by members of the db_owner or replmonitor fixed database roles on the distribution database.