locked
Data partioning sql2005 RRS feed

  • Question

  • Is it compulsory to have table partioned for switch operation?

    Is it possible to migrate data from partitioned table to unpartitioned table on different file group?

    Can I use same partition function and scheme for another table to partitioned if one already exists?

    Thanks in advance

    Wednesday, July 7, 2010 8:58 AM

Answers

  • Is it compulsory to have table partioned for switch operation?

    Yes

    Is it possible to migrate data from partitioned table to unpartitioned table on different file group?

    1. Switch out the data to the temp table first.

    2. Use the ALTER TABLE .. MOVE command to move this table into a different file group

    Can I use same partition function and scheme for another table to partitioned if one already exists?

    Yes. Both of them will be on the same policy, though you will have to be careful, because alteration in the scheme would have impact on both.



    SQLEnthusiast
    http://sqlsimplified.com/
    Please click the Mark as Answer button if a post solves your problem!
    Wednesday, July 7, 2010 9:05 AM

All replies

  • Is it compulsory to have table partioned for switch operation?

    Yes

    Is it possible to migrate data from partitioned table to unpartitioned table on different file group?

    1. Switch out the data to the temp table first.

    2. Use the ALTER TABLE .. MOVE command to move this table into a different file group

    Can I use same partition function and scheme for another table to partitioned if one already exists?

    Yes. Both of them will be on the same policy, though you will have to be careful, because alteration in the scheme would have impact on both.



    SQLEnthusiast
    http://sqlsimplified.com/
    Please click the Mark as Answer button if a post solves your problem!
    Wednesday, July 7, 2010 9:05 AM
  • Well Sorry for delay in reply.

    Thank you so much

    Thursday, July 22, 2010 5:52 AM