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

Answer Posted / baijnath tiwari

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 ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to insert and update data into a table with "insert" and "update" statements?

514


Describe how to use the linked server?

606


What is log shipping?

564


What is database isolation in sql server? : sql server database administration

570


How many columns can exist together per table?

709






Explain the xml support sql server extends?

624


How to restore performance issues and how to check?

1527


How to find tables without indexes?

633


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

507


What is change data capture (cdc) in sql server 2008?

566


Can we use having clause without group by?

556


Which feature in sql server 2008 has surprised you? You can name just one. : sql server database administration

502


which table keeps the locking information? : Sql server administration

524


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

760


What is store procedure? How do they work?

583