What is difference between TRUNCATE and DELETE statement

Answer Posted / hari

Delete - is logged operation,so deletion of each row get
logged into the transcation log.
Truncate - won't logged
Delete - use where condition
Truncate - Can't use where condition
delete - fire the trigger
Trunacte - can't fire the triggger

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are diverse clauses that form a part of sql?

601


What are the different types of stored procedures?

556


What is create statement?

533


How optimize sql query with multiple joins in sql server?

417


What do you mean by an execution plan? Why is it used?

535






If I delete a template from the list in sql studio, will it be deleted from the hard disk? : sql server management studio

560


How do you debug a procedure in sql server?

499


How to enter unicode character string literals in ms sql server?

579


What happens if null values are involved in comparison operations?

547


What is resource db in sql server?

601


What are the differences between local and global temporary tables?

562


What is 4nf in normalization form?

573


What is function of ROLLUP ?

658


Do you know what are the properties of the relational tables?

577


If the job running very slow what is the action you do

1428