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 not null constraint?

1101


A user is a member of the public role and the sales role. The public role has select permission on all the tables. The sales role does not have select permission on some of the tables will the user be able to select from all tables?

953


How to list all field names in the result set using mssql_field_name()?

906


what is raid? : Sql server database administration

1025


Can a cursor be updated? If yes, how you can protect which columns are updated?

1096


What is transaction server distributed transaction?

1037


What are types of subqueries?

1058


Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

1315


How to create a view on an existing table in ms sql server?

1115


What is open database communication (odbc)?

1054


Where cross join is used?

947


When I delete any data from a table, does the sql server reduce the size of that table?

1003


How to find index size for each index on table?

994


What is collation sensitivity?

1053


What language is sql server written in?

1020