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

How to create a Master database in SQL server ?

1090


What is normalization? Explain its different types?

1092


Can one drop a column from a table?

1020


Why Master database is required?

1144


your distribution database is full what will u do

2172


How to create percentile function?

153


How important do you consider cursors or while loops for a transactional database?

966


What is precedence constraint?

983


What are sub reports?

201


why does a sql statement work correctly outside of a user-defined function, but incorrectly inside it? : Sql server administration

1068


what is the system function to get the current user's user id? : Sql server database administration

1025


What is rolap and its advantage? : sql server analysis services, ssas

1283


How do you create a data source?

912


How to list all user names in a database?

1058


What is the most common trace flags used with sql server?

1046