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

Selectively deleting rows from MSMERGE_GENHISTORY!

$
0
0

I know this is a big No-No. But I think I don't have a better option at this point. We have SQL2012 publisher and 230 SQL 2008 EXPRESS subscribers. The retention for data is 3 days. And, publisher is set for @partition_options = 3; that means the subscription data is non-overlapping (unique). 

For some reason, we see a large amount of rows in MSMERGE_GENHISTORY table. Although, all the subscribers are in synch. In MSMERGE_GENHISTORY  a couple of rows show genstatus 1 (means closed), and 99% of the rows have genstatus 2 (closed, also means data originated at a different subscriber.)

What can I do to bring down the record counts in this table? Can I purge the data in this table, since the records are in synch? has anyone ever purged the data from this table?

I tried exec sp_mergemetadataretentioncleanup, but didn't find any improvement. 

-- PUBLISHER 

Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64) 
Oct 19 2012 13:38:57 
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)

-- SUBSCRIBER 

Microsoft SQL Server 2008 (SP2) - 10.0.4064.0 (Intel X86) 
Feb 25 2011 14:22:23 
Copyright (c) 1988-2008 Microsoft Corporation
Express Edition with Advanced Services on Windows NT 5.2 <X86> (Build 3790: Service Pack 2)


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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