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

Can I work with several databases simultaneously? : sql server management studio

990


What is the maximum size of a row in sql server?

969


What is the difference between functions and stored procedures?

1165


Why should you use or avoid select * statements?

1031


Explain the database you used in your final year project?

1045


Difference between report and query parameter.

1100


Explain active/passive and active/active cluster configurations?

1059


What are the benefits of filtered indexes?

1040


What is log shipping?

962


Can we use where clause with group by?

904


What are the types of normalization?

1031


What are the grouping functions?

935


How to return the second 5 rows in ms sql server?

1059


What are .mdf files?

942


Difference between LEN() and DATALENGTH() in sql server ?

1107