Returns detailed information about a Merge Agent session.
Assembly: Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)
public DataSet EnumMergeAgentSessionDetails( string agentName, string sessionId )
- Type: System.String
A String value that specifies the name of the Merge Agent. You can obtain this value from the SynchronizationAgentName property of the merge subscription.
Return ValueType: System.Data.DataSet
A DataSet object that contains the following columns.
The running status:
1 = Start
2 = Succeed
3 = In progress
4 = Idle
5 = Retry
6 = Fail
Time that the session completed.
Elapsed time of the logged session activity, in seconds.
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.
You should commit any property changes to the PublisherMonitor 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.
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.