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

what is database replicaion? What are the different types of replication you can set up in sql server? : Sql server database administration

1049


While you are inserting values into a table with the insert into .. Values option, does the order of the columns in the insert statement have to be the same as the order of the columns in the table?

1041


What is the purpose of update statistics and scope_identity() function?

1160


Explain the difference between function and stored procedure?

997


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

1121


what are the types of indexes? : Sql server database administration

1183


How to create a new schema in a database?

1211


When is the use of update_statistics command?

1059


How we create SQL Server 2005 Reporting Services ? Give me Sample

2044


How to create a dynamic cursor with the dynamic option?

1107


Mention the differences between substr and charindex in sql server.

1117


Why we need to use secondry database file? though, we can do same work using primary database file also.

7009


How to create dbo table in sql server?

1007


If we delete pack Spec what will be the status of pack Body ?

1524


What is the difference between createstatement and preparedstatement?

1001