can I do this during the day when the db is being used or should I wait until the evening when everyone is off. The table is very small, under 1 million rows.
5. Add all constraints (primary, foreign, check) to the new table 6. Add all indexes to the new table 7. Add any triggers to the new table
You can do step 6 before dropping and renaming, but if you do steps 5 and 7 before, you'll have to give all the constraints/triggers different names as they must be unique in the database