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

Which is the latest version of sql server and when it is released?

1192


How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?

1798


What is triggers and its types?

1065


Difference between report and query parameter. Why do we need different type of parameter?

1007


How is foreign key related to primary key?

1010


What happens if date-only values are provided as date and time literals?

1073


What is difference between table aliases and column aliases? Do they affect performance?

1017


How to add a new column to an existing table with "alter table ... Add" in ms sql server?

1048


What action plan is preferred if sql server is not responding?

1153


How to create a store procedure with encryption?

1051


User wants only to display only pdf as export option in report manager. How to achieve this?

269


What is the difference between writing data to mirrored drives versus raid5 drives

986


What is a covering index?

1040


What are the different types of Indexes available in SQL Server?

1052


Define inner join? Explain with an example?

1044