What's the difference between DELETE TABLE and TRUNCATE
TABLE commands?

Answer Posted / ajay

DELETE Command
•It will delete record by record

•Execution is slow
•It is a logged command, so data
can be Restore after delete
•Condition can be applied with delete.
•It will fire trigger.

TRUNCATE Command
•It will delete all the records at the Same time.
•Execution is fast.
•It is not a logged command, so data can’t
be Restore after Truncate.
•Condition can’t be applied.
•It will not fire the trigger.

ajay.thomala@gmail.com

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is auditing in sql server?

685


What are pages and extents? : SQL Server Architecture

710


What is page-level compression?

721


Can we insert data into view sql server?

716


What is default constraint in ms sql server?

712






How to list all login names on the ms sql server?

699


Which are the new data types introduced in sql server 2008?

669


What is a collation in ms sql server?

716


Explain having clause and where clause?

786


What are the five characteristics of good data?

679


Explain iaas, paas and saas?

86


How to write a query with a full outer join in ms sql server?

721


What is the latest version of microsoft sql server?

669


What are the types of lock supported by ?

781


What is Replication?

808