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

Define self join in sql server joins?

899


What is user-defined multi-statement table-valued function?

996


What are key, name and value columns of an attribute? : sql server analysis services, ssas

946


How to use "begin ... End" statement structures in ms sql server?

957


What is difference between inner join and join?

982


Is INSTEAD OF trigger directly applicable to Table ?

958


Why I am getting this error when dropping a database in ms sql server?

1021


Explain the stored procedure?

992


Give me any three differences between Truncate and Delete.

1041


Explain different types of lock modes in sql server 2000?

879


What are the difference between clustered and a non-clustered index?

978


How do you manipulate data?

849


What is an expression in ms sql server?

1013


State the difference between union and union all?

889


What is difference between count (*) and count column?

839