Hello.
I have a Transactional Replication with a remote Distributor, on a DB that I was previously publishing, then removed the PUB and SUB (because I switched to a Remote Distributor), and now am trying to set the DB for Replication up again.
For the past 10 hours the Snapshot Agent re-tried several times, and it has always gotten stuck at the same point (82% completion):
Execution Timeout Expired....Command Text: sp_Msactivate_auto_sub (with Params @publication, @article = % and @status = active)
I have now put it to 3600 seconds before it times out, but regardless if this works of not, I would like to kindly ask the following:
- Any clue why exactly it has been failing at this Stored Procedure, and what does this SP do?
- If I end up having to drop the whole Publication and start anew, I am thinking of adding a new SP to my "Clean Up a Publication" set of SPs, and it's sp_cleanupdbreplication, so I wanted also to kindly ask what does it exactly do and should I fire it up on both PUB and SUB (and Distributor), or only PUB Server?
(I did read a bit about it, but from what I've skimmed, the documentation is a bit obscure, so I thought I ask here for a clear answer)
With thanks and kind regards,
Bogdan