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

Shrink Database on a DB flagged for replication. Thoughts?

$
0
0

Fellow SQLers

1- Database A is the primary databse, it is replicated to database B on another server.

2 - We need to do a LOT of purging on the A db. About half the data. So the USED amount of space will drop from 780 GB to about 400 GB.

3 - I WILL HAVE an outage window of over 24 hours.

There are number of performance hits and observcations here. 

1 - Left as is, the massive deletes will be replicated.

2 - Blocking will not be an issue because I have an outage window where apps will not be hitting the db.

3 - When done, we want to free up the unused space on A. Due to processing changes, it will be unlikely it will grow back that big again and we can use the space. So this shrink scenario makes sense.

My question is the best way around this?

To me, it appears that the easiest approach might be to cease all replication. Do the deletes on A. Do the shrink on A. Then reinitialize the snapshot to B.  thoughts?

Thanks

MG


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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