Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

MSmerge_history table cleanup

$
0
0

Hello experts,

we have done the sql server 2008 R2 SP3 upgrade on our live servers on the last saturday. i can see more than 57 million records were updated at that particular time in the table MSmerge_history. when the agent cleanup job kicks in with retention of 48 hours, it is causing so much of blocking, then i digged into it and understood that there are huge number of records. now cleanup is not happening. I stopped and disabled the job.

I did not understand why these many records were updated in that table in just 3 minutes. how can I delete these records? I tried to execute the procedure EXEC dbo.sp_MShistory_cleanup @history_retention = 48 (the same procedure is called with the agent history cleanup job), distrubution database log has eaten all the log drive space, and grown upto 135 GB. if I keep auto growth off for the distrubution database, is that good?

please I need your inputs to resolve this issue. if i keep this cleanup to the weekend, is that fine? will it not impact business?

please suggest.


Cheers, Vinod Mallolu


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>