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 audit control procedures?

749


What are the rendering extensions of ssrs?

125


How do I install only the client tools of sql server 2000?

732


Do you know what is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting is possible?

775


What is unpivot?

775






Do you know spatial data types - geometry and geography in sql server 2008?

765


how to avoid cursors? : Sql server database administration

652


When we should use and scope of @@identity?

718


how many bits ip address consist of? : Sql server database administration

630


Can you please explain the difference between function and stored procedure?

748


Explain the difference between function and stored procedure?

681


What is triggers and its types?

725


How to provide default values to function parameters?

762


where can you add custom error messages to sql server? : Sql server administration

800


Is it possible to import data directly from t-sql commands without using sql server integration services? If so, what are the commands?

1070