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 database normalization?

1210


How to use linked server?

1180


How to insert and update data into a table with "insert" and "update" statements?

975


Why use cursor in sql server?

1068


What is the downside of using udf?

1098


Explain Geography datatype in SQL Server

1117


Can you explain what are commit and rollback in sql?

929


what's the difference between a primary key and a unique key? : Sql server database administration

934


1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?

2097


what is new philosophy for database devises for sql server 7.0? : Sql server database administration

998


What is single-user mode?

921


What type of Index will get created after executing the above statement?

1090


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

944


What is standby servers? Explain types of standby servers.

987


How many types of relations are there between dimension and measure group? : sql server analysis services, ssas

1194