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

Explain about local stored procedure?

512


What is the return type of executeupdate ()?

533


What is filter index?

525


What is the contrast between sql and mysql?

602


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

616






What is mean by candidate key?

561


What is inline table-value user-defined function?

605


Difference between primary key and clustered index?

514


you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration

542


Explain various On-Delete options in a DB table. Which is the default option?

904


Is truncate a dml command?

510


What are the different subsets of sql?

967


how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A

1229


Explain the flow of creating a cube? : sql server analysis services, ssas

637


Explain temporary table vs table variable by using cursor alternative?

530