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

How to maintain a fill factor in existing indexes?

1006


How to create a store procedure with encryption?

1006


wat wil hapn if we give the both read and deny read permission to user?

2103


Can we store videos inside the sql server table?

980


What is normalization 1nf 2nf 3nf?

1060


What is the difference between dataadapter and datareader?

1003


How to use order by with union operators in ms sql server?

1024


what are the basic functions for master, msdb, model, tempdb and resource system databases? : sql server database administration

988


What is the difference between executequery () and executeupdate ()?

1040


Which is faster statement or preparedstatement?

945


What is the command dbcc checkdb used for?

1010


What does this statement do @@rowcount?

967


How do triggers work?

936


What is the return type of executeupdate ()?

906


What are the instances when triggers are appropriate?

979