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

How to create new tables with "select ... Into" statements in ms sql server?

681


Which are the important points to note when multilanguage data is stored in a table?

683


Which sql server table is used to hold the stored procedure scripts?

800


What are the essential components of sql server service broker?

761


Can a stored procedure call itself or recursive stored procedure? How many levels sp nesting is possible?

705






What are types of subqueries?

749


What is #temp and @table variable in SQL server?

764


Define compound operators?

679


How many ways to create table-valued functions?

751


can a table be moved to different filegroup? : Sql server administration

716


What is factless fact table? : sql server analysis services, ssas

761


What authentication modes does sql server support?

756


If any stored procedure is encrypted, then can we see its definition in activity monitor?

728


What do you understand by SQL*Net?

784


What is a unique key constraint?

724