| Author: sangeetha 12 May 2009 | Member Level: Gold Points : 2 |
DELETE TABLE is a logged operation, so the deletion of each row gets logged in the transaction log, which makes it slow. TRUNCATE TABLE also deletes all the rows in a table, but it won't log the deletion of each row, instead it logs the deallocation of the data pages of the table, which makes it faster. Of course, TRUNCATE TABLE can be rolled back.
DROP : Drops the table records and structure from the DB schema. Nothing else is leftout. Can't rollback.
|