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?

Answers were Sorted based on User's Feedback



Differencr Between DELETE and TRUNCATE?..

Answer / rajesh bhawsar

delete command, delete row by row and same time it makes an
entry in transaction log
while truncate remove the referance of respective
page/extent and doesn't make any entry in transaction log
truncate is faster then delete.
in case of truncate seed value (auto increment column) reset
to default unlike delete.

Is This Answer Correct ?    6 Yes 1 No

Differencr Between DELETE and TRUNCATE?..

Answer / manoj pandey

DELETE vs TRUNCATE
Check: http://sqlwithmanoj.wordpress.com/2009/02/22/difference-between-truncate-delete-and-drop-commands/

~Manoj

Is This Answer Correct ?    1 Yes 0 No

Differencr Between DELETE and TRUNCATE?..

Answer / 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

More SQL Server Interview Questions

What is a result set object returned by mssql_query()?

0 Answers  


What is the role that is required for killing a process What is the role that is required for creating a linked server

1 Answers   CarrizalSoft Technologies, IBM,


what's sql server? : Sql server database administration

0 Answers  


What does it mean to be in union?

0 Answers  


What is the difference between deallocate cursor and close cursor?

0 Answers  


What is the Difference beween sql server 2005 and sql server 2008

3 Answers   CMC, Hitech,


Write a program to fetch first 10 records from a file?

0 Answers   Amdocs,


Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?

0 Answers  


Explain Normalization and DE normalization

0 Answers   iNautix,


What is change tracking in sql server?

0 Answers  


What is stored in the mssqlsystemresource database? : sql server database administration

0 Answers  


Explain system functions or built-in functions? What are different types of system functions?

0 Answers  


Categories