Steps to move lob_data table to another file group in same database without downtime?

SVA 116 Reputation points
2022-06-30T03:21:48.5+00:00

How to move lob_data columns like image, text, varbinary tables to another file group in same database without downtime?

Developer technologies | Transact-SQL
{count} votes

Accepted answer
  1. Bert Zhou-msft 3,436 Reputation points
    2022-06-30T06:10:47.047+00:00

    Hi,@ShanlyV-5349

    Welcome to Microsoft T-SQL Q&A Forum!

    Before 2020, we usually say that we can only rename the new table by creating a new table of the same type and moving the data. Last year I browsed a partition implementation method, please browse this post, it will help you.

    Best regards,
    Bert Zhou


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our Documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2022-06-30T05:41:41.267+00:00

    without downtime?

    You can't.
    To move lob_data to a different file group you have to alter the table design and that locks the table complete until data move completed.

    The only way is a much more complexe process, e.g. make copies on the tables in new design, copy over data, drop old tables, rename new tables etc.

    0 comments No comments

  2. Harsh Basuta 16 Reputation points
    2022-06-30T07:26:55.38+00:00

    You can't.
    To move lob_data to a different file group you have to alter the table design and that locks the table complete until data move completed.

    The only way is a much more complexe process, e.g. make copies on the tables in new design, copy over data, drop old tables, rename new tables etc.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.