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 partition in sql server?

535


Can I use sql azure as a backup with log shipping or database mirroring?

136


What types of Joins are possible with Sql Server?

552


what is an index? : Sql server database administration

524


Can we perform backup restore operation on tempdb?

571






Can we update data in a view?

604


How can I tell if sql server is 32 or 64 bit?

501


Can we add an identity column to decimal datatype?

586


Do you know what are the differences between lost updates and uncommitted dependencies?

547


Does full backup break log chain?

553


A trigger can reference objects outside the current database? State true or false.

557


Which language is supported by sql server?

560


What is model database? : SQL Server Architecture

574


What is order of B+tree?

662


Explain what is the difference between union and union all?

550