What is the difference between truncate and delete statement?

Answer Posted / balaji t

Identity counter can be reset in truncate whereas it is not possible in delete.Truncate dont activate trigger whereas delete can be used in triggers.truncate is a DDL command whereas delete is a DML command.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can another user execute your local temporary stored procedures?

542


explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

642


What is difference between unique and primary key?

479


What is a dbms wizard?

617


What do you understand by a view? What does the with check option clause for a view do?

607






What do you understand by coalesce in sql server?

499


Explain differentiate between a having clause and a where clause?

519


How will you monitor replication activity and performance? What privilege do you need to use replication monitor? : sql server replication

549


What are out-of-range errors with date and time literals?

556


What is a field name?

515


Why and when do stored procedure recompile?

546


What is query cost in sql server?

553


How do you handle datasets larger than 50 gb?

140


What is data compression? : sql server database administration

549


How will you hide an attribute? : sql server analysis services, ssas

525