Unix Technical Forum

Transaction log size after backup.

This is a discussion on Transaction log size after backup. within the SQL Server forums, part of the Microsoft SQL Server category; --> I have a MS SQL 2000 dB that is 3GB, the transaction log is about 2GB. I do a ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 05:06 PM
D. Buck
 
Posts: n/a
Default Transaction log size after backup.

I have a MS SQL 2000 dB that is 3GB, the transaction log is about 2GB.
I do a full dB backup every night. My question is, shouldn't the
transaction log shrink down to next to nothing after a full dB backup?

D.
p8oust7eh+
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 05:06 PM
nigelrivett
 
Posts: n/a
Default Re: Transaction log size after backup.


No - the tr log backups are independent of the full backup.
If a full backup gets lost or corrupted you can go back to the
previous backup and still use the sequence of log backups up to the
current point.

To allow the log to truncate you will have to do a tr log backup.
In fact if you have the database in full recovery mode then you should
be doing tr log backups more often.
Maybe it should be set to simple?

--
Posted via http://dbforums.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 05:06 PM
A.M. de Jong
 
Posts: n/a
Default Re: Transaction log size after backup.

Hi D,

You have to understand 2 facts:
1. Truncate of the transaction log; This means that the transaction log
removes committed transactions.
The log does not shrink but the space now is reused.
2. Shrink of the transaction log. This means that the unused space is given
back to the OS.

If you don't take measurements with this your file will grow continuously.

The truncate happens after a transaction log backup. And at this time you
will be able to shrink the transaction log; You can make this a part of
your maintenance plan; you can do it manually or you can make it a part of
your job.
You can't shrink before you truncate (might have just a little effect).

Greetings

Arno de Jong, The Netherlands.


"D. Buck" <triumpht5@yahoo.com> wrote in message
news:f433d5cf.0307091220.3d3636af@posting.google.c om...
> I have a MS SQL 2000 dB that is 3GB, the transaction log is about 2GB.
> I do a full dB backup every night. My question is, shouldn't the
> transaction log shrink down to next to nothing after a full dB backup?
>
> D.
> p8oust7eh+



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:56 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com