ReplicationMonitor.EnumMergeAgents Method ()
Applies To: SQL Server 2016 Preview
Returns information on Merge 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.
Average number of rows delivered per second.
The number of inserts applied at the Subscriber.
The number of updates applied at the Subscriber.
The number of deletes applied at the Subscriber.
The number of conflicts that occurred while applying changes at the Subscriber.
The number of inserts applied at the Publisher.
The number of updates applied at the Publisher.
The number of deletes applied at the Publisher.
The number of conflicts that occurred while applying changes at the Publisher.
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.
The EnumMergeAgents method can only be called by members of the db_owner or replmonitor fixed database roles on a distribution database at the Distributor.