What is difference between TRUNCATE and DELETE statement

Answer Posted / hari

Delete - is logged operation,so deletion of each row get
logged into the transcation log.
Truncate - won't logged
Delete - use where condition
Truncate - Can't use where condition
delete - fire the trigger
Trunacte - can't fire the triggger

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of master, tempdb and model databases?

708


What is the index requirement in SQL Azure?

86


What are the different types of join?

791


What is a primary index?

697


What the different components of Replication and what is their use?

763






How do you make a trace?

754


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

802


How to run sql server 2005 books online on your local system?

713


How can you fetch alternate records from a table?

710


Tell me the use of keyword with encryption. Create a store procedure with encryption?

752


Explain the different types of backups available in sql server? : sql server database administration

678


Can I disable or restrict ssrs export formats (rendering formats)?

126


How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?

760


What are the differences between having and where clause.

709


Explain the functionalities that views support?

856