Re: Log Invalidated after truncate table
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Sun, 20 Nov 2005 19:54:45 +0000 (UTC)
Hugo Kornelis (hugo@xxxxxxxxxxxxxxxxxxxxxx) writes:
> A TRUNCATE TABLE operation is minimally logged. That means that there is
> just enough information in the log file to rollback if the transaction
> fails or commit if it doesn't - but not enough to re-apply the changes.
Reference?
TRUNCATE TABLE logs the extent deallocations, and that is perfecly
enough to reapply the changes.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- Follow-Ups:
- Re: Log Invalidated after truncate table
- From: Hugo Kornelis
- Re: Log Invalidated after truncate table
- References:
- Log Invalidated after truncate table
- From: ronin 47th
- Re: Log Invalidated after truncate table
- From: Hugo Kornelis
- Log Invalidated after truncate table
- Prev by Date: Re: Make a Bunch of Rows from a Table Resemble a Column
- Next by Date: Re: HIT and MISS
- Previous by thread: Re: Log Invalidated after truncate table
- Next by thread: Re: Log Invalidated after truncate table
- Index(es):
Relevant Pages
|
Loading