In SQL Server, you can switch partitions in and out of a partitioned table.
You can do this with the ALTER TABLE
statement. Basically, it goes like this:
ALTER TABLE OldTable
SWITCH TO NewTable PARTITION x
This switches the partition for OldTable
into partition x
of NewTable
(where x
is the partition number).