ReplicationMonitor.EnumSnapshotAgents Method ()
Returns information on Snapshot 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.
Replication agent job name.
The running status:
1 = Start
2 = Succeed
3 = In progress
4 = Idle
5 = Retry
6 = Fail
Name of the publication database.
Name of the publication.
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 delivered per second.
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.
The value used for evaluating the SUSER_SNAME (Transact-SQL) function in parameterized filters that defines a partition.
The value used for evaluating the HOST_NAME (Transact-SQL) function in parameterized filters that defines a partition.
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.
Themethod can only be called by members of the db_owner or replmonitor fixed database roles on the distribution database.