473,385 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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+
Jul 20 '05 #1
2 9579

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
Jul 20 '05 #2
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" <tr*******@yahoo.com> wrote in message
news:f4**************************@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+

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: TZoner | last post by:
1) Can one find the location of the 'Transaction Log' at: <Hard Disk>\Program Files\Microsoft SQL Server\MSSQL\Data\MyDb_Log.ldf? 2) Is it safe to delete it, as SQL will create a new Transaction...
7
by: enigma | last post by:
Just wondering if you could help me on this one. I'm not sure if my transaction logs are behaving oddly or what. I've successfuly managed to shrink my transaction logs from 7GB down to 1MB and now...
5
by: Jay Chan | last post by:
The transaction log in a database in our SQLSERVER-2000 server has grown to 16GB. I cannot shrink the transaction log manually because it says that the entire 16GB log size is not free. This is...
3
by: Thiko | last post by:
Hi I take one nightly full database backup at 02:00 and backup the transaction log to one backup set every 15mins. The commands to do this are as follows and are set up to run as database...
5
by: BashiraInTrouble | last post by:
Hi Friends, I have tried almost everything but I cant seem to shrink the transaction log. Executing DBCC SQLPERF(LOGSPACE) gives me this info: Database Log Size (MB) Log Space Used (%) ...
2
by: Charles MacLean | last post by:
How can I truncate and shrink the transaction log under SQL 2000? My log is 10 GB in size and I assume most of the transactions are committed. Thanks
4
by: yashgt | last post by:
Hi, We have created a SQL server 2000 database. We observe that the transaction log keeps growing over time. We are now about to run out of space. We have been periodically shrinking the...
3
by: sifrah | last post by:
Hi All, My SQL server transaction log is getting bigger every day and my HDD if running out of space. So i follow the MS KB about how to Shrinking the Transaction Log. After doing so the log is...
4
by: Trevor Best | last post by:
I have a client with 150MB database, the transaction log file is nearly 23GB. It's a PITA for me to backup his data and restore it on my server as it takes about 30 minutes to restore as it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.