Possible Duplicate:
What is the best way to delete a large number of records in t-sql?
What is the fastest way to delete massive numbers (billions) of records in SQL?
I want to delete all the records that match a simple rule like myFlag = 3
.
Is it possible to add a WHERE
clause to a TRUNCATE
?
Another solution that could be possible is the optimization made by dropping the table indexes and re-create it after. How could I do that?