I used that strategy too, but creating the clustered index on the new table
will at least take 6 hrs, and there are three non-clustered indexes as well.
Indexes have to be created within the window.
But, it's a good option if they can extend the window.
Thanks,
Ada

Signature
SQL Server DBA
> > Hi All,
> >
[quoted text clipped - 34 lines]
>
> Rick Sawtell
Rick Sawtell - 30 May 2008 16:56 GMT
> I used that strategy too, but creating the clustered index on the new
> table
[quoted text clipped - 3 lines]
>
> But, it's a good option if they can extend the window.
How wide is your clustered index that it takes 6 hours to create?
Keep in mind also that the data is already going to be sorted in clustered
index order, that should speed up the index creation process.
Rick Sawtell
Eric Isaacs - 30 May 2008 19:44 GMT
Test it before the window to see how long it would take. You could do
a good portion of the work before the window (copying the other data
across, setting up the indexes, then when the window opens, just copy
across the changes (assuming you have a way to track the updated/added
records.)
Another option would be to delete the 100 million in time in smaller
batches. Pick them off when the usage is low with a sproc that runs
on a timer to drop a million at a time.
If you script everything out, even if it takes 6 hours to rebuild the
indexes, you can probably squeeze it in the 8 hour window???