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 / satya

1.Both Truncate and Delete are rollbacked in TSQL.
2.Truncate maintains single record in Transaction log
entire records where Delete writes one-to-one record which
is slow in performance.
3.Truncate reinitializes the IDENTITY count to zero.
4.Truncate gives error with Table Variables.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sub reports?

208


How many levels of sp nesting are possible?

1067


What are out-of-range errors with date and time literals?

1092


What is raiseerror? What is raiseerror?

1193


What is the purpose of floor function?

1091


Explain ranking functions?

1094


What is a system database and what is a user database?

1138


What command do we use to rename a database?

1115


What is tablix?

169


What are the main sources of data?

1142


What is table-valued sub query?

1026


Explain what is lock escalation and what is its purpose?

981


Give me a SQL Query to find out the second largest company?

1227


Explain the functionalities that views support?

1162


Why we should not use triggers?

1009