What is difference between TRUNCATE and DELETE statement

Answer Posted / nageswarao

truncate is used for deleting all data from table.
it is similar to delete command without condition.
main differences b/w delete & truncate are
1.truncate is faster in execution than delete which will
restructure the complete table without bothering of data.
where as delete checks the data row by row wrotes
information into log and deletes.
2.with truncate we cannot use any conditions

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

578


Can you explain powershell included in sql server 2008?

503


How to create function without parameter in sql server?

557


What is the return type of executeupdate ()?

517


What is the importance of concurrency control?

661






What is microsoft sql server?

537


what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?

5495


You notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it?

638


Can group functions be used in the order by clause in ms sql server?

586


How to create a dml trigger using create trigger statements?

554


How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?

551


List out different types of normalizations in sql server and explain each of them?

551


What is clr ddl trigger?

549


How self join is different from outer join?

601


How do database indexes work?

542