I need to drop all indexes and constraints and do some processing, after thar I have to apply same indexes and constraints again using MYSql.Please help.
Please suggest if there is some way to store the information/metadata of index created.
I need to drop all indexes and constraints and do some processing, after thar I have to apply same indexes and constraints again using MYSql.Please help.
Please suggest if there is some way to store the information/metadata of index created.
Start by disabling all constraints:
ALTER TABLE my_tbl NOCHECK CONSTRAINT ALL
Primary keys and unique constraints can't be disabled.
Then reenable them again:
ALTER TABLE my_tbl WITH CHECK CHECK CONSTRAINT ALL