Delete with no criteria TRUNCATEs table > Invisionize.eu - IP.Board (IPB) News
Kanał Rss Kanał Rss
Kanał Atom Kanał Atom

Delete with no criteria TRUNCATEs table

wersja drukowalna wersja Microsoft Word wersja HTML

If no criteria are passed to the delete function on the driver, a TRUNCATE TABLE is performed.

TRUNCATE TABLE is fast because it does not bother logging, which can break some DR or other replication scenarios. We should just use DELETE FROM with no criteria in this case, which removes all data from the table with transaction logging.

sob, 23 październik 2010

Komentarze:

Brak komentarzy

Imię/Nick:

Adres email:

Strona WWW:

Treść Komentarza: