Search code examples
sqlreplication

How to check if Merge Replication is really complete or not


Hopefully some SQL replication genius can help on this one.

We've got some handheld devices that are using merge replication on our SQL 2008 R2 database to keep their local database in synch.

This works most of the time but the client is requesting a report that shows the status of the synch as it progresses.

Now I'm watching the msmerge_history and msmerge_session tables during the merge and I'm noticing that they state complete long before the device itself has completed.

So the client is seeing that a synch has been successful only for it to fail 5 minutes later due to one reason or another.

How can I see when the client has finished it's merge?


Solution

  • It's not exactly an answer but Microsoft has confirmed to us that we can't monitor subscriber progress in real time from the server. It can only be monitored from the subscriber.

    So we are going to have to change the way our subscriber works to notify the server of it's progress.