Hi,
I'm looking for the most efficient method for moving a clustered index from the primary key (single IDENTITY field) to an existing index containing Date, Store and Associate. The table currently has about 91 million rows and takes up about 12 Gig of disk space.
Here are my questions:
1. Should I copy the data out to a work table using an ORDEY BY of the (NEW) clustered index - then copy back with the new indexes?
2. Recreate the indexes over the existing data?
3. Export the data to disk files and import using BCP?
Not sure what the best practice is for this type of change (besides designing it correctly in the first place).
Any feekback would be greatly appreciated.
Windows 2000 Advanced Server
SQL Server 2000 Enterprise Edition
I'm looking for the most efficient method for moving a clustered index from the primary key (single IDENTITY field) to an existing index containing Date, Store and Associate. The table currently has about 91 million rows and takes up about 12 Gig of disk space.
Here are my questions:
1. Should I copy the data out to a work table using an ORDEY BY of the (NEW) clustered index - then copy back with the new indexes?
2. Recreate the indexes over the existing data?
3. Export the data to disk files and import using BCP?
Not sure what the best practice is for this type of change (besides designing it correctly in the first place).
Any feekback would be greatly appreciated.
Windows 2000 Advanced Server
SQL Server 2000 Enterprise Edition