Last line is INCORRECT. Truncate Table CAN'T be rolled back.
Interviews2 answers
What's the difference between DELETE TABLE and TRUNCATE TABLE commands
2 Answers
PriyankaPosted Nov 7, 2007, 7:54 PM EST
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.
canujaPosted Nov 28, 2006, 11:45 PM EST