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

Answer Posted / sreedhar

Truncate is DDL command, Delete is a DML command.
Delete operation can be rolled back and in truncate we
can't.
Where caluse can be used in Delete and not in Truncate.
Truncate table less time than delete in execution

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to get the definition of a view out of the sql server?

509


What is 1nf 2nf?

556


What are database states in ms sql server?

655


What is ms sql server index?

565


How do you create a data source?

480






Is BCNF better than 2NF & 3NF? Why?

624


Do you know how to send email from database?

556


Explain the difference between function and stored procedure?

517


How to download and install the scaled-down database adventureworkslt?

608


Explain unique key in sql server?

540


What will be the maximum number of index per table?

590


tell me the disaster recovery plan

2027


Define self join in sql server joins?

527


How do I know if localdb is running?

516


What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.

621