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

What happens when transaction log is full?

511


What is page-level compression?

551


Which sql server table is used to hold the stored procedure script?

475


What are transactions in sql?

547


How to restore performance issues and how to check?

1519






What is a transactions?

600


Determine how to use the inserted and deleted pseudo tables?

533


What is a schema in ms sql server 2005?

564


How do I view a script in sql server?

531


How can you insert null values in a column while inserting the data?

714


Why I am getting this error when dropping a database in ms sql server?

588


Do you know sql server 2008 backup compression?

564


What is the maximum number of index per table?

562


Explain powershell included in sql server 2008?

609


How does Report Builder support Analysis Services cubes?

110