What is difference between TRUNCATE and DELETE statement

Answer Posted / monal

Delete doesn't reset identity column seed if you have 1
identity column in the table.
Truncate resets identity column seed to the original value.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are “phantom rows”?

1249


What is the use of floor function in sql server?

557


What are the 7 disadvantages to a manual system?

515


How to select some specific columns from a table in a query in ms sql server?

505


what are user defined datatypes? : Sql server database administration

522






Write a sql query to sort on different column name according to the parameters passed in the function?

538


What stored by the model? : sql server database administration

550


what is the difference between delete table and truncate table commands? : Sql server database administration

527


What is inline table-value user-defined function?

598


What is the minimum and maximum number of partitions required for a measure group? : sql server analysis services, ssas

601


How to find the second highest salary of an employee?

598


How to use go command in "sqlcmd"?

648


Which sql server is best?

520


What happens if an integer is too big for int date type?

581


Can coalesce return null?

549