Skip to main content


Showing posts from November, 2012

Google Search

Custom Search

Live Search

Yahoo Search

Search the web Search this site

SQL Truncate vs. Delete

By now as you know, in this post I am going to discuss about two SQL commands we use regularly to clear data in our tables.Usage


Even though they do a similar thing, there are some differences which makes them unique commands.DELETETRUNCATE1. Considered as Data Mining Language (DML) statement.Considered as Data Definition Language (DDL) statement.2. Can be used to delete all or part of data in a table.Will delete all the data in a table.3. Will log the actions.There will be no logging on record deletion.4. Will use more locks.Will use fewer locks.5. Will use more resources.Will use less resources.6. Slow.Fast.7. Will not reset the identity seed.Will reset the identity seed to 0.8. Can be used to delete data in tables having relationships.Cannot use in tables having relationships.9. Can be used in tables involved in log shipping or replication.Cannot be used in tables involved in log shipping or replication.10. Transaction can be rolled back.No r…

Beerenberg Strawberry Farm – Hahndorf South Australia

If you like Strawberries and would like to pick your own, then there is a good place you can do it in Hahndorf South Australia.It is called Beerenberg Strawberry farm, located on the Mount Barker road. If you are planning to visit them to pick your own strawberries you need to visit them from October to May which is the Strawberry season. Else you can buy their produce from the shop.Normally they are open everyday except Christmas day from 9:00AM to 04:00PM. Anyway it is always good idea to give them a call before going.There is enough parking on site and there will be a helper on busy days. Once you are there you can visit the shop to get permission to enter the patch. When I was there entry was $ 3 per person. They will also provide containers to bring the Strawberries you pick. Remember to pick whatever amount of Strawberries you would like to buy. Normally you can keep them from few days to about 10 days in fridge (obviously you can keep bit more days than this but then they wont …