Returns information for the Log Reader Agent job used by the monitored publication.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
'Declaration Public Function EnumLogReaderAgent As DataSet 'Usage Dim instance As PublicationMonitor Dim returnValue As DataSet returnValue = instance.EnumLogReaderAgent()
Return ValueType: DataSet
A DataSet object that contains the following columns.
Replication Agent job name.
The running status:
1 = Start
2 = Succeed
3 = In progress
4 = Idle
5 = Retry
6 = Fail
Name of the monitored publication database.
Date and time of last agent execution.
Date and time that the session was logged.
Elapsed time of the session, in seconds.
Message text logged by the agent.
The time first transaction is delivered.
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 committed to the published database and being committed to the distribution database.
Identifier of the SQL Server Agent job starting the Replication Agent.
When true, the agent job is available at the Distributor.
Agent job identifier.
Timestamp of the most recent agent run.
You should commit any property changes to the PublicationMonitor 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.