I have a situation for which I would appreciate any valuable pointers.
I have sql transactional replication configured as below.
sql01sqla ---> publisher sql01sqlc --> subscriber sql01sqle ---> distributor.
I am testing if I can recover my replication flow , in the event of losing the distribution host, I have put distribution database in full recovery model and am taking log backups every 15mins.
After configuring transactional replication, and ensuring a table is in sync, i stopped the agents (log reader and distribution ) on the distribution host.
inserted a few records on publication and ensure the log back job of the publisher db is disabled as well.
Now restored distribution database from backup ( latest full backup and logs).
On starting the log reader agent, it gives me the below error
Agent message code 21482. sp_MShelp_repl_agent can only be executed in the "distribution" database.
Any ptrs as to what I should be checking here ?
Many thanks in advance. Nazeer