Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What's the difference between DELETE TABLE and TRUNCATE
TABLE commands?

Answer Posted / ranjay

Truncate / When use Truncate after that insert new record
into the table row started from 1 but
Delete / When delete record in a table after that insert
new record row id started from after the deleted row
For e g, I m create a table Employee and insert 5 record
row number set identity true and increment by 1
After that, I m delete last record I e row number is 5
after delete I m insert new record in a table then row id
started from 6 not 5 but when truncate table row id start
from 1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is use of attributehierarchyenabled? : sql server analysis services, ssas

1226


What is a select query statement in ms sql server?

1058


What are the advantages to use stored procedures?

1097


what is the difference between a primary key and a unique key? : Sql server database administration

988


What is a sql join?

1007


Can a cursor be updated? If yes, how you can protect which columns are updated?

1095


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

953


What are the steps you can take to avoid “deadlocks”?

968


What is the difference between stored procedure and functions?

1115


What are the types of dml?

976


What is wrong with sql server client libarary dll, ntwdblib.dll?

1033


Can we insert data into view sql server?

918


what is the sql equivaent of the dataset relation object ?

2011


What is fill factor and pad index?

1005


What is a heap?

1025