Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I remove the two Log Reader Agents with errors from the Replication Monitor?

As you can see, the job does not exist (Error message produced by right click > Properties on errored Log Agent Reader) - it has previously been deleted, but these two Log Reader Agents refuse to go!

Log Reader Agent errors

share|improve this question
up vote 0 down vote accepted

I was having this same issue. Below is how I found the orphaned Log Reader Agents, Once they were identified I removed the rows from MSlogreader_agents and it corrected the issue of errors in the replication monitor

SELECT TOP 500 [id]
FROM [distribution].[dbo].[MSlogreader_agents]
share|improve this answer

Its never recommended to delete rows from system defined table. Please follow below steps to remove any orphan logreader agent.

  1. Create a dummy transactional replication ‘Dummy1’.
  2. Add database(select publisher_db from [distribution].[dbo].[MSlogreader_agents]) as publisher and another database(it would be good if you remember the old subscriber) as subscriber.
  3. Add any dummy article to it.
  4. Drop the subscriber of ‘Dummy1’.

This will renmove the orphan log reader agent of transactional replication. Similarly you can work for snapshot agent or merge agent.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.