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

How to list all columns in a table using odbc_columns()?

946


Explain forward - only cursors?

1008


How to count rows with the count(*) function in ms sql server?

965


What is data modification?

909


What specific conditions database should meet, before you can bulk copy data into it using bcp?

955


What is indexed view? How to create it?

951


Explain the relational database management system (rdbms)?

1046


what are the different types of SSRS reports?

149


When I run the sql server 2000 setup, it just hangs. What do I do?

1039


How will you decide the active and passive nodes?

1091


What is index, cluster index and nonclustered index?

949


How to list all field names in the result set using mssql_field_name()?

878


what is a self join? Explain it with an example? : Sql server database administration

898


What are sql servers used for?

1001


What are the differences between having and where clause.

938