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

How to move table partitions to different file groups Expand / Collapse
Author
Message
Posted Wednesday, January 09, 2013 12:24 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, May 14, 2013 2:42 PM
Points: 193, Visits: 773
Hi Experts,

Can you please help me in movin my 4 table partitions of a table to 4 different file groups. Right now all the partitions are on Primary file group.

Post #1404569
Posted Wednesday, January 09, 2013 4:59 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Tuesday, April 16, 2013 8:34 AM
Points: 23, Visits: 128
First you should check few things before moving a table

1. You cannot change the data type of the partitioning column once the table is partitioned.
2. You can move an index to a partition scheme after it has been created.
3. You cannot use the SWITCH option of ALTER TABLE statement on replicated tables.

Have a look at quite similar discussion ..

http://dba.stackexchange.com/questions/16708/moving-large-number-of-tables-to-different-filegroups

Either you can go for a third party tool for moving table partitions to different file group like Lepide SQL Storage Manager

Post #1404690
Posted Wednesday, January 09, 2013 7:31 AM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Friday, April 26, 2013 2:58 PM
Points: 221, Visits: 452
I think the easiest would be to create a new partition function and move the table to that new function. I'm assuming you want to move the whole table which has 4 partitions.

---------------------------------------------------------------
Mike Hahn - Future MCM 2025
Right way to ask for help!!
http://www.sqlservercentral.com/articles/Best+Practices/61537/
I post so I can see my avatar
I want a personal webpage
I want to win the lotto
I want a gf like Tiffa
Post #1404784
Posted Monday, January 14, 2013 4:18 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, February 04, 2013 12:43 AM
Points: 10, Visits: 45
The above all mentioned operation can also be performed easily by any sql management software in a very few time
it save lot of time of DBA

http://www.sqlservermanagement.net/
Post #1406652
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse