Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

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

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, November 11, 2014 2:38 PM
Points: 24, Visits: 387
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


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Yesterday @ 10:51 AM
Points: 4,158, Visits: 5,556
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