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 is multilevel indexing?

541


mention different types of relationships in the dbms?

515


What is the use of floor function in sql server?

565


How to create prepared statements using odbc_prepare()?

575


What is the difference between DataRow.Delete() and DataRow.Remove()?

750






Can group functions be mixed with non-group selection fields in ms sql server?

555


How can delete duplicate records in cte in sql server?

526


What is sql server management studio? : sql server management studio

593


How to truncate the log in sql server 2012? : sql server database administration

581


What is a unique key constraint?

539


how many type of indexing in database?

591


Can I use sql azure as a backup with log shipping or database mirroring?

136


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

660


Please explain the characteristics of a transaction server for example atomicity, consistency, isolation, durability?

506


What is sql server agent and what are the two modes of authentication in sql server?

562