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

Answer Posted / radh

TRUNCATE is a DDL command whereas DELETE is a DML command.
Hence DELETE operation can be rolled back, but TRUNCATE
operation cannot be rolled back. WHERE clause can be used
with DELETE and not with TRUNCATE.

Is This Answer Correct ?    27 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the parts of a function?

521


Explain different forms of normalization?

526


What is a bit datatype?

560


How do you create a clustered index?

522


What is a rollup clause?

543






If any stored procedure is encrypted, then can we see its definition in activity monitor?

543


How to create an multi-statement table-valued function?

526


Explain the purpose of indexes?

541


What are distributed partitioned views?

617


What is a periodical index?

503


What is 1nf 2nf?

545


Tell me what is the significance of null value and why should we avoid permitting null values?

547


How to convert a numeric expression from one data type to another?

498


How would you use user_constraints table in DB?

586


Define tool Manage Statistics in SQL Server 2000 query ?

524