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
How to provide values to stored procedure parameters in ms sql server?
What is the difference between for trigger and after trigger?
Why olap is used?
Can anyone tell that the extra features are there in SQL SERVER 2008 that are not available in previous versions .
What are the different kinds of ssrs reports?
What is dimension table? : sql server analysis services, ssas
The external application that is executed in one of the tasks does not have a log file, but only a screen log. How can I save the data from the screen? : sql server management studio
What are the restrictions applicable while creating views? : SQL Server Architecture
What is logshipping and its purpose?
Is mysql better than sql server?
How to connect to SQL Azure Database by using sqlcmd?
What will be the value of @@fetch_status if a row that was a part of the cursor resultset has been deleted from the database after the time the stored procedure that opened the cursor was executed?
Explain active/passive and active/active cluster configurations?
What is difference between global temporary tables and local temporary tables?
How do I change my passwords (database, LDAP, and so on) without causing an outage?