RE: Lights needed on the T Log management

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Mike Epprecht (SQL MVP) (mike_at_epprecht.net)
Date: 01/14/05


Date: Fri, 14 Jan 2005 05:47:01 -0800

Hi

It carries on from where it last was. Once it hits the end of the file and
there is space at the beginning of the file, it starts at the beginning again.

That is why truncating a log file will not always make it shrinkable to the
smallest possible size.

Regards
Mike

"Chris V." wrote:

> Hi,
>
> I've got a quick question about the way SQL server handles the Transation
> logs (in Full recovery mode).
>
> Transations are kept in the log until the log is or backed up or truncate,
> The size will be reduce will DBCC SHRINKxxx
>
> My question is : After I truncate a log, will the next transactions be
> append to the log which will keep growing, or will the new transactions be
> written on the space which has been released by the truncation ?
>
> Thanks
> Chris
>
>
>



Relevant Pages

  • Re: Should Trans-Log be on its own RAID volume?
    ... I thought Tran log gets truncated at checkpoint no matter how full its is, ... it gets rid of committed transactions ... > mode it will truncate when the log gets about 70% full and will only ... It's not the size but the volume and way the transactions get ...
    (microsoft.public.sqlserver.server)
  • Re: Transaction Log Filling Up - SQL 2000
    ... The best solution is to issue a log backup to cleanly backup the ... transactions and truncate the inactive portion of the log. ... This script is ALTERing many tables to ADD a column ...
    (microsoft.public.sqlserver.programming)
  • Re: Log Question
    ... Perhaps I wasn't clear enough in my previous message I'm trying to explain that you can backup the log (with truncate_only or not) but you shouldn't truncate the physical log file because you will have problems if you do that. ... could I possibly blow away transactions that ...
    (microsoft.public.sqlserver.replication)
  • Re: truncate transaction log
    ... The physical size of the log file will not shrink when you truncate the ... size that will hold all of the transactions in between log backups. ... time the log backup will truncate the committed transactions ...
    (microsoft.public.sqlserver.server)
  • OT: CC the Rapper; was: Re: Were losing the battle
    ... Craddock, Chris wrote: ... They didn't really process the transactions beyond ... review of a new rap opera written by Chris Craddock. ... For IBM-MAIN subscribe / signoff / archive access instructions, ...
    (bit.listserv.ibm-main)