August 13, 2007 at 1:46 pm
August 13, 2007 at 2:01 pm
Move the clustered index into the new group... AFAIK, all the rest will follow along with it.
August 13, 2007 at 2:07 pm
I will do that, thanks!
August 13, 2007 at 2:14 pm
Assuming the previous idea works (make sure you test first).
Script all the tables but only the clustered index.
Do a search and replace to set the new filegroup and add the WITH DROP EXISTING option.
That should be pretty much all you have to do... except wait for the code to complete its run.
August 13, 2007 at 3:50 pm
I ran into a similar situation and one of my co-workers finally found the screen in 2005 MS where you can simply change the filegroup and save the change like you could in EM.
Once you have the table open in the modify screen press the [F4] key to bring up the table properties. From there you can change the file group and save the table into the new filegroup.
Now since you have so many tables you could then use the change script as a basis to script this process out - but you will need to take into consideration the constraints and clustered indexes, etc.
Hope this helps.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply