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 / skybeaver

"Delete TableName" is a logged transaction. Every row
affected by the delete will be written to the transaction
log. This is done for RECOVERY purposes, so that the
transaction may be rolled forward from a previous database
dump.

"Truncate TableName" is non-logged. It removes all rows
from the table and releases all allocated segments in the
database, all without logging anything. This is not
something a developer does, but rather is done by a DBA as
part of some sort of housekeeping.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain raiserror in sql server?

997


Can another user execute your local temporary stored procedures?

967


Can you import Microsoft Excel data to SSRS?

132


Explain how to use linked server?

978


How to call a function from a stored procedure in SQL Server ?

1002


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

1016


Do you know what is xpath?

1065


What is scd (slowly changing dimension)? : sql server analysis services, ssas

994


what changed between the previous version of sql server and the current version? : Sql server database administration

987


Mention the differences between sql server and mysql.

998


How you can get a list of all the table constraints in a database? : Sql server administration

1007


Does table partitioning improve performance?

950


What is normalization? Explain different forms of normalization?

1125


do you know what is a deadlock and what is a live lock? How will you go about resolving deadlocks? : Sql server database administration

965


What is implicit mode in sql server?

1076