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 / sreejith s t

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 ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does index makes search faster?

979


How does clustered and non clustered index work?

925


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

2363


How to get a list of columns using the "sp_help" stored procedure in ms sql server?

1024


Explain cross join or cartesian product in sql?

891


How to download microsoft sql server 2005 express edition?

1047


Difference between report and query parameter. Why do we need different type of parameter?

960


How to Update from select query in sql server?

1062


What is a heap?

1035


How can we solve concurrency problems?

1054


What is a database table?

972


What are the encryption mechanisms in sql server?

1030


How do I setup a local sql server database?

1010


How to declare a cursor with "declare ... Cursor" in ms sql server?

1047


Explain the third normal form(3nf)?

946