Dear all,
I have a question regarding indexes on a data extract database we have - MSSQL2000.
Each night a scheduled job:
1. Deletes the indexes
2. Truncates the table data (empties the tables of all data)
3. Imports the latest data from a UNIX database
4. Recreates the indexes.
Q1. Is this the best way to deal with the indexes? I believe the deleting and recreating is causing a problem on the scheduled job but im not sure of the best way to set this up. Is there a command to rebuild them? Or will it simply do it itself?
The data imported is large amount, several million transactions in 1 table alone so the need for indexes is paramount.
Q2. Overall is this a good method to perform this extract?
Many thanks for any help.
Tim
I have a question regarding indexes on a data extract database we have - MSSQL2000.
Each night a scheduled job:
1. Deletes the indexes
2. Truncates the table data (empties the tables of all data)
3. Imports the latest data from a UNIX database
4. Recreates the indexes.
Q1. Is this the best way to deal with the indexes? I believe the deleting and recreating is causing a problem on the scheduled job but im not sure of the best way to set this up. Is there a command to rebuild them? Or will it simply do it itself?
The data imported is large amount, several million transactions in 1 table alone so the need for indexes is paramount.
Q2. Overall is this a good method to perform this extract?
Many thanks for any help.
Tim
Comment