What is difference between TRUNCATE and DELETE statement

Answer Posted / firoz shaikh

If identity is set on column and current identity col is 10
then if truncate and delete is done then for truncate
identity col will be 1 and for delete then it will be 11.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Ms sql server index?

546


What is save transaction and save point?

630


How to use wildcard characters in like operations in ms sql server?

606


How do I know if localdb is running?

519


Explain the truncate command?

524






What is Extended user-defined?

538


Why use stored procedures in sql server?

557


What are the restrictions while creating batches in sql server?

587


What is transaction server explicit transaction?

546


What is a full text index?

497


What do you understand by mirroring and mention the advantages of the mirroring?

583


How to add more data to the testing table in ms sql server?

556


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

559


What are scalar functions in sql?

613


How are the unique and primary key constraints different?

571