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

What is tempdb database? : SQL Server Architecture

1258


What is the new security features added in sql server 2016? : sql server security

1164


Where to find ntwdblib.dll version 2000.80.194.0?

1008


Explain the stored procedure?

1096


What are the results of running this script?

975


What are the common performance issues in sql server?

973


Where do we use trace frag?

1063


How to use the inserted and deleted pseudo tables?

1004


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

1078


What are wait types?

1200


What is meant by indexing files?

1096


What is sql injection and why is it a problem? : sql server security

1188


How do I view a stored procedure in sql server?

1032


How to create a view and a stored procedure in ms sql server using "create view/procedure" statements?

1072


Is it true, that there is no difference between a rule and a check constraint?

1111