Re: Log Invalidated after truncate table



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
.



Relevant Pages

  • Re: Second Transaction Log File
    ... What do you think is it good or bad to remove the second log file? ... Let's see, then I would have to look up the exact syntax in Books Online, ... and then ALTER DATABASE with REMOVE FILE. ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ...
    (comp.databases.ms-sqlserver)
  • Re: View SQL transaction log details
    ... backup which contains a 34GB log file, but I don't know how to view it. ... There is a undocumented DBCC command, DBCC LOG, but it's very difficult ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Second Transaction Log File
    ... I can't really say whether you should keep the second log file, ... I don't know what your database is about, nor do I know the sizes of the ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (comp.databases.ms-sqlserver)
  • Re: Instead of DBO
    ... Anyone can create temp table. ... When you say TRUNCATE TABLE, ... Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx ... Books Online for SQL Server 2005 at ...
    (microsoft.public.sqlserver.security)
  • Re: Delete without log ??
    ... TRUNCATE TABLE. ... Columnist, SQL Server Professional ... I want to make some DELETE on a lot of data without writting anything in the ... DB log file? ...
    (microsoft.public.sqlserver.server)

Loading