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

sp_mergemetadataretentioncleanup

$
0
0

Can someone explain how this stored procedure works?  I have a republishing server with a lot of msmerge_genhistory records.  This is causing the initial snapshot to take a long time and was actually causing an error to initialize from the snapshot until i increased the query timeout.  If I do a count of the records in msmerge_genhistory and group by subscriber server and left join to sysmergesubscriptions on subscriber number I see that most of the records in msmerge_genhistory have a null subscriber server and a null last sync date.  I'm not sure but wouldn't the cleanup stored proc work off the last sync date in sysmergesubscriptions.  And for this metadata in msmerge_genhistory since most of the records have a null last sync date shouldn't that be cleaned up.  It would be nice to get rid of these records if possible so initializing from the snapshot would perform much better.


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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