Can you tell me the difference between DELETE & TRUNCATE
commands?

Answer Posted / kapil

Delete: is a DML command.
Truncate: is a DDL command.

Delete & Truncate both can be rolled back.
Untill you have not commit transaction.

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 triggers and its types?

741


Explain what stored procedure sp_replcounters is used for? : sql server replication

1258


What are the differences between stored procedure and view in sql server?

863


How to create a view using data from another view?

752


Is the log file is a part of file group?

742


How will you optimize a stored procedure optimization?

695


What is the use of floor function in sql server?

750


Explain different types of collation sensitivity?

721


What is the chart in report?

125


What are functions in the sql server?

822


What is a result set object returned by mssql_query()?

773


What are the advantages of stored procedure in sql server?

665


Explain an automatic checkpoint

737


What is the recovery model?

738


List out a number of the wants to setup a SQL Server failover cluster?

774