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 to insert multiple rows with a subquery?

1189


How do I create a stored procedure in sql server?

1096


how to invoke a trigger on demand? : Sql server database administration

1152


Which table keeps information about stored procedures?

983


Explain some stored procedure creating best practices or guidelines?

1002


What is normalization? Describe its different types.

1153


What are the different methods available under sqlcommand class to access the data?

1169


How to download and install the scaled-down database adventureworkslt?

1039


How do you test your database? : sql server database administration

1071


What is implicit cursors?

1132


Difference between group by clause and having clause in SQL?

1028


What do we have to check in database testing?

1056


How can i Relate Tables in SSIS

1134


What are magic tables in sql server?

1202


what is hash nonclustered index

1022