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 is difference between TRUNCATE and DELETE statement

Answer Posted / archana motagi

Both the operations can be rolled back.The difference is,
DELETE TABLE is a logged operation, so the deletion of each
row gets
logged in the transaction log, which makes it slow.
TRUNCATE TABLE
also deletes all the rows in a table, but it won't log the
deletion of
each row, instead it logs the deallocation of the data
pages of the
table, which makes it faster.

Is This Answer Correct ?    17 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What stored by the msdb? : sql server database administration

1003


What is user-defined inline table-valued function?

948


Can truncate be rolled back?

943


How to use old values to define new values in update statements in ms sql server?

1266


Explain transaction server explicit transaction?

930


tell me the disaster recovery plan

2516


Can we use trigger new in before insert?

921


How many columns can we include on clustered index ?

990


Mention what are the core components of ssrs?

323


Scalability, Availability, Integration with internet, etc.)?

2878


What are extended events in sql server?

955


How can we call UDF(User Define Function) using C# code in ASP.net ?

6885


Explain syntax for viewing, dropping and disabling triggers?

953


How to view existing indexes on an given table using sp_help?

1137


What is the order by used for?

1024