jeffmoore64
Programmer
Hi,
Anyone have a neat script to drop all the indexes on a table except an index that starts with "PK"?
I need to insert about 55-60 million rows into a table that has a bunch of indexes on it. Last time we did this with the indexes in place to took about 40 hours. I'm hoping to speed this up by dropping all the indexes except the PK and then create the indexes I dropped after we load the table.
Sound like a reasonable plan?
TIA,
Jeff
Anyone have a neat script to drop all the indexes on a table except an index that starts with "PK"?
I need to insert about 55-60 million rows into a table that has a bunch of indexes on it. Last time we did this with the indexes in place to took about 40 hours. I'm hoping to speed this up by dropping all the indexes except the PK and then create the indexes I dropped after we load the table.
Sound like a reasonable plan?
TIA,
Jeff