Differences
1. The conditions can be written after the delete from statement, but not after the truncate statement.
2. The delete from record is deleted one by one, and each deleted line of record is logged, while the truncate deletes the entire page at a time. Therefore, only the page is released from the day to day. In short, delete from updates, basically no truncate, less transaction log Space
3. After deleting an empty table from the delete from statement, an empty page is retained.
4. When the delete statement is executed using the row lock, the rows in the table are locked for deletion. Truncate always locks tables and pages, rather than locking rows.
5. If the auto-increment ID column generated by identity is deleted from, it will still increase from the last number, that is, the seed will remain unchanged. After truncate, the seed will resume the initial
6. Truncate does not trigger the delete trigger, because the truncate operation does not record the deletion of each row