Answer:
Recreating the index:
ALTER INDEX indexName INACTIVE;
ALTER INDEX indexName ACTIVE;
Please note that it does not work for indices automatically created by the system like the ones for primary key or foreign key. You might want to drop and recreate the constraints in such case.
To recalculate the index statistics (which is enough for most cases), use:
SET STATISTICS INDEX indexName;
ALTER INDEX indexName INACTIVE;
ALTER INDEX indexName ACTIVE;
Please note that it does not work for indices automatically created by the system like the ones for primary key or foreign key. You might want to drop and recreate the constraints in such case.
To recalculate the index statistics (which is enough for most cases), use:
SET STATISTICS INDEX indexName;
Previous Question | Next Question |
How to pump the data from one database to another? | How to reorder the table columns (fields)? |