I just joined my new office as database administrator. Here we are using SQL Server merge replication. It surprises me that 3 of major replication tables
- Msmergre_contents
- Msmergre_genhistory
- Msmergre_tombstone
Size of Msmergre_contents
grew up to 64GB & no of records about to 64 billion and this is happening due to None
set as the Expiration Period
for subscriptions.
Now I want to clean up this table. As we are using a Simple
recovery model, when I wrote a delete query on this table, everything got stuck. I have no downtime to stop/pause replication process.
Can anyone help me out how to minimize its size or delete half of its data?