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
What is the difference between Stored Procedures and triggers?
What are the types of subscriptions in SQL Server replication?
Can we add a cpu to sql server?
What is the difference between locking and multi-versioning?
What is extended stored procedures?
Suppose you want to implement the one-to-many relationships while designing tables. How would you do it?
What is transaction server auto commit?
How to get a list of table columns using the "sp_columns" stored procedure in ms sql server?
How to end a stored procedure properly in ms sql server?
I have all the primary data files, secondary data files as well as logs. Now, tell me can I still restore the database without having a full backup? : sql server database administration
What are the types of table?
what is bit datatype? : Sql server database administration
Do you know what is openxml in sql server?
Write a sql query to delete duplicate records from a table called table1
Introduction of rollup clause using sum and group by clause?