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 the key configuration files for sql server reporting services ?

120


Explain “row_number()” in sql server with an example?

520


What are the steps to follow to configure SQL*Net?

559


Why use identity in sql server?

558


What is apply operator in sql?

560






What is clustered index

567


Are there any preferred steps that need to be taken care of before starting the installation of sql server 2000?

568


What do you understand by replication in sql server? Mention the different types of replication in sql server.

504


What is a non equi join?

540


define and explain the differences between clustered and non-clustered indexes.

599


What are the properties and different types of sub-queries?

558


Can we use where clause with group by?

514


which backup strategy you are following at ur company

1728


explain what is raid and what are different types of raid configurations? : Sql server database administration

543


What are the advantages of passing name-value pairs as parameters?

657