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 is an indexed view?

745


what is blocking? : Sql server database administration

720


Differentiate between truncate vs delete in mssql?

683


How to disconnect from a sql server using mssql_close()?

774


Can we perform backup restore operation on tempdb?

741






What are the essential components of sql server service broker?

761


What are the different normalization forms?

804


Which tcp/ip port does sql server run on? How can it be changed?

762


What is store procedure? How do they work? When do you use?

696


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

732


what are statistics, under what circumstances they go out of date, how do you update them? : Sql server database administration

685


Can we add our custom code in ssis?

718


how will add additional conditions in sql?

739


Is INSTEAD OF trigger directly applicable to Table ?

735


What is the recovery model? List the types of recovery model available in sql server?

660