what is the difference between Delete and Truncate

Answer Posted / anil sharma

Delete command execute row by row and it can't reset any
identity column's value.
But using Truncate command it reset all table and Identity
column also.So truncate command is fast then delete command.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the underflow and overflow behaviors on float literals?

786


Why use triggers?

780


What is difference between foreign key and unique key?

751


Explain user defined views?

746


What are the different index configurations a table can have?

692






How to verify a login name with sqlcmd tool?

792


Explain what is public role in sql server?

788


Tell me what is the order in which the sql query is executed?

706


How to provide column names in insert statements in ms sql server?

809


Explain what is the function of sql server agent windows service?

706


How to get the number of affected rows?

736


Explain unique key in sql server?

722


List out a number of the wants to setup a SQL Server failover cluster?

752


Explain left outer join and right outer join?

762


How to create user messages with print statements in ms sql server?

765