Differencr Between DELETE and TRUNCATE?

Answer Posted / rajesh bhawsar

delete command, delete row by row and same time it makes an
entry in transaction log
while truncate remove the referance of respective
page/extent and doesn't make any entry in transaction log
truncate is faster then delete.
in case of truncate seed value (auto increment column) reset
to default unlike delete.

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me what is the difference between locking and multi-versioning?

574


What is instead of dml trigger?

579


What are drillthrough reports?

102


How does using a separate hard drive for several database objects improves performance right away?

526


OPTIMIZATION OF SP,CURSOR,TRIGGERS

2205






How many types of keys are there?

526


Explain why variables called the most powerful component of ssis?

526


can a table be moved to different filegroup? : Sql server administration

543


Can you please explain the difference between primary keys and foreign keys?

653


What is trace flag in sql server?

517


What is the difference between osql and query analyzer?

541


What is the process of normalising?

582


What is page-level compression?

548


What is function of CUBE ?

604


What happens if an integer is too big for int date type?

569