ReplicationMonitor.EnumDistributionAgents Method ()
Returns information on Distribution Agent jobs 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.
Name of the distribution database.
Name of the replication agent job.
The running status:
1 = Start
2 = Succeed
3 = In progress
4 = Idle
5 = Retry
6 = Fail
Name of the publication database.
Name of the subscription database.
The type of subscription:
0 = Push
1 = Pull
2 = Anonymous
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.
The time the 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.
Latency, in milliseconds, between the transaction entering the distribution database and being applied to the Subscriber.
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.
If true, the subscription supports remote agent activation.
Name of the server used with remote agent activation.
The data source type at the Subscriber:
0 = SQL Server Subscriber.
1 = Open Database Connectivity (ODBC) data source.
Themethod can only be called by members of the db_owner or replmonitor fixed database roles on a distribution database at the Distributor.