Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

Partitioning Sliding Window with ability to restore Expand / Collapse
Posted Thursday, February 17, 2011 4:19 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, October 20, 2016 10:47 AM
Points: 25, Visits: 468
I have a working sliding window strategy with monthly partitions and each month's partition lives on it's own filegroup/file.

Now I'm to removing/switching out the old partitions.

If I never wanted to restore the data: I understand the partition switching mechanism and the removal of the filegroup.

HOWEVER, I forsee the day when I'm asked for some specific transaction from the past that would be held in one of these old partitions. So I'd like to be able to restore them as needed.

My options appear to be (in order of ease-of-restore):
1. Set the filegroup to read_only (but this requires the DB to be in single user mode - a no-go in our 24/7 system)
2. Leave the filegroup read/write, filegroup backup before removing it from the DB. But for this to be restored to the DB it looks like we would need to keep all the log backups from the time the filegroup was removed so that they could be re-applied and bring the filegroup online (quite difficult - this could be a year's worth of log backups!).

Am I missing something?

Someone please say yes!
Post #1066068
Posted Friday, February 18, 2011 12:07 AM



Group: General Forum Members
Last Login: Thursday, December 1, 2016 9:44 PM
Points: 5,356, Visits: 7,064
One other alternative - create an archive table on the partition scheme, switch the old data out of the current table into the archive table. This will serve two purposes:
> keep the running table moderatly small
> retain the history for a given period of time

Space, the final frontier? not any more...
All limits henceforth are self-imposed.
“libera tute vulgaris ex”
Post #1066164
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse