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

Why do you want to join software field as you have done your BE in Electronics?

2105


Explain something about security and SQL Azure?

110


What is the difference between varchar and varchar types?

1005


What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?

4301


Name some of the open source software that you can use in alternative to SSR?

151


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

877


can a database be shrunk to 0 bytes, if not, why? : Sql server administration

1118


What is trace flag in sql server?

977


Is profiler the only tool that has the ability to audit and identify ddl events? : sql server security

1014


What is scrollable cursor?

987


How do I get to sql server configuration manager?

953


what is blocking? : Sql server database administration

983


Explain unique key in sql server?

955


Do you know how to make remote connection in database?

904


Differentiate between SQL and ORACLE joins and write their syntax.

981