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

What are points to remember while using the fillfactor argument?

528


List out the different types of locks available in sql server?

553


What is use of @@ spid in sql server?

675


What are unicode character string data types in ms sql server?

599


What is a livelock?

555






Where is localdb stored?

555


What is normalization? Explain its different types?

597


Write a SQL command to insert and update only a particular field?

621


Can we use having clause without group by?

554


How to create median function?

118


Explain different types of collation sensitivity?

529


How to modify an existing user defined function?

592


How to retrieve error messages using mssql_get_last_message()?

531


What is data block and how to define data block size?

601


What is pivot and unpivot?

638