sp_replmonitorhelpmergesession (Transact-SQL)
Returns information on past sessions for a given replication Merge Agent, with one row returned for each session that matches the filtering criterion. This stored procedure, which is used to monitor merge replication, is executed at the Distributor on the distribution database or at the Subscriber on the subscription database.
|
Column name |
Data type |
Description |
|---|---|---|
|
Session_id |
int |
ID of the agent job session. |
|
Status |
int |
Agent run status: 1 = Start 2 = Succeed 3 = In progress 4 = Idle 5 = Retry 6 = Fail |
|
StartTime |
datetime |
Time agent job session began. |
|
EndTime |
datetime |
Time agent job session was completed. |
|
Duration |
int |
Cumulative duration, in seconds, of this job session. |
|
UploadedCommands |
int |
Number of commands uploaded during the agent session. |
|
DownloadedCommands |
int |
Number of commands downloaded during the agent session. |
|
ErrorMessages |
int |
Number of error messages that were generated during the agent session. |
|
ErrorID |
int |
ID of the error that occurred |
|
PercentageDone |
decimal |
Estimated percent of the total changes that have already been delivered in an active session. |
|
TimeRemaining |
int |
Estimated number of seconds left in an active session. |
|
CurrentPhase |
int |
Is the current phase of an active session, which can be one of the following. 1 = Upload 2 = Download |
|
LastMessage |
nvarchar(500) |
Is the last message logged by Merge Agent during the session. |