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

1.truncate is DDL cmd.where as delete is a DML cmd.
2.truncate is similar to delete command without no
condition.
3.when u use truncate it restructure the table,wthout
bothering of data it deletes entire records.
but,delete is a logged transaction.before delete
records it copies to transaction log.then removes.
4.truncate take less time than delete in execution.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you list all the table constraints in a database?

979


Why main is user defined function?

1046


What is hot add cpu in sql server 2008?

979


What is the syntax to execute the sys.dm_db_missing_index_details?

1071


How you can add messages to the nt event log from within a stored procedure?

1134


Do you know what are the properties of the relational tables?

1067


what are different types of raid configurations? : Sql server database administration

1093


What is the use of @@spid?

1046


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

1002


what kind of lan types do you know? : Sql server database administration

1019


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

1062


How do I view a stored procedure in sql server?

1027


Explain insert into select statement?

998


Tell me what is de-normalization and what are some of the examples of it?

1098


What are database states in ms sql server?

1239