Returns information on jobs for miscellaneous replication agents at the monitored Distributor.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
Return ValueType: System.Data.DataSet
A DataSet object that contains the following columns.
Replication agent job name.
Type of miscellaneous replication agent.
The running status:
1 = Start
2 = Succeed
3 = In progress
4 = Idle
5 = Retry
6 = Fail
Message text logged by the agent.
Date and time of the last agent execution.
Elapsed time of the session, in seconds.
Identifier of the SQL Server Agent job starting the replication agent.
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.