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...

Differencr Between DELETE and TRUNCATE?

Answer Posted / wasimali

1) Delete command maintained the log files in each deleted row but truncate command do not maintained the log files for each deleted row but maintain the record for DE-allocation
of data-pages in the log files

2)Delete is a DML command and truncate is a DDL command.
3)Trigger is fired in case of delete command only but they are not fired when truncate command is used.

4)you can used where clause in case of delete command use to delete a particular row,
but you can not use where clause in case of truncate command use to delete a data from rows.

5) Truncate command reset the identity property to its initial values whereas delete command can not reset its identity property of its column.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a data source or ds? : sql server analysis services, ssas

1049


How to retrieve error messages using mssql_get_last_message()?

1096


What are the disadvantages of indexes?

1151


Equi join and non equi join is possible with sql server?

1083


Explain what is use of dbcc commands?

1129


What is table level trigger?

1052


What is the difference between Clustered and Non-Clustered Index?

1100


What are the basic functions for master, msdb, model, tempdb databases?

1091


explain extended properties

1034


How to change parameter value inside the report?

169


Do you know what guidelines should be followed to help minimize deadlocks?

1013


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

1094


What are views used for?

1055


What are data files?

1089


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

1037