SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Partitioning Sliding Window with ability to restore


Partitioning Sliding Window with ability to restore

Author
Message
Jim Foster 80123
Jim Foster 80123
SSC-Enthusiastic
SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)SSC-Enthusiastic (151 reputation)

Group: General Forum Members
Points: 151 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! ;-)
Stewart "Arturius" Campbell
Stewart "Arturius" Campbell
One Orange Chip
One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)One Orange Chip (27K reputation)

Group: General Forum Members
Points: 27258 Visits: 7545
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”
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum







































































































































































SQLServerCentral


Search