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 is the difference between truncate and delete statement?

Answer Posted / vasu

Both Truncate and delete deletes the rows from a table .
But we cant use where clause in truncate statement . While
doing delete operation all the deleted rows are logged in
the transaction log . It reduces the perfomance . In
truncate operation no transaction logging is happening .
Delete is Autocommited but Truncate is Not .

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to insert a new row into a table with "insert into" statements in ms sql server?

975


What do you mean by authentication modes in sql server?

1084


If user is owning any SQL Objects, can we drop that user

2078


why would you call update statistics? : Sql server database administration

1089


between cast and convert which function would you prefer and why?

956


How do you manipulate data?

911


What is built-in/administrator?

1006


Can we update data in a view?

1034


What is the beast way to write CTE in SQL Server ?

1046


Which data type columns are the best candidates for full-text indexing?

970


What are the mathematical functions supported by sql server 2005?

1071


What is statement level trigger?

1007


Can you explain what are various ways to enhance the ssrs report?

1002


How to change server name in sql server?

1185


How many non clustered indexes there can be on table ?

920