Today someone asked me how to “roll their own” SQL Replication Monitor to keep an eye on the health of SQL Server Replication. You’ve seen from my previous post I usually use a TracerToken job to monitor SQL Transactional Replication and query against MSmerge_sessions table for Merge Replication. However, you can also create your own “Replication Health Check” stored procedures which execute the same queries used by SQL Replication Monitor.
The SQL Books Online covered these in great detail. Search on INDEX for these stored procedures. The BOL topic include syntax and output.
Or use the links below as a starting point to read more about writing your own code..
If you have sample code or links to related topic, COMMENT this blog posting and I’ll your information on this blog.