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

Do you know the cursor types?

1105


Can you explain the disadvantages/limitation of the cursor?

905


What are secondary xml indexes?

983


Does full backup break log chain?

910


Do you know what is difference between index seek vs. Index scan?

896


How can I track the changes or identify the latest insert-update-delete from a table?

912


Will count(column) include columns with null values in its count?

1030


How to use user defined functions in expressions?

1005


How to execute a sql statement using odbc_exec()?

1054


How to change the ownership of a schema in ms sql server?

1087


Give me any three differences between Truncate and Delete.

1040


What is the difference between system objects and user objects?

1096


What is the difference between for trigger and after trigger?

1022


Explain the difference between HTTP and HTTPS in database?

973


Every night you run a full backup after every 3 three hours you make a differential backup every hour you make an incremental backup in a worst-case scenario, how much work you can lose?

894