Re: Transaction Log Filling Up - SQL 2000
From: Andrew J. Kelly (sqlmvpnoooospam_at_shadhawk.com)
Date: 05/05/04
- Next message: Dwight: "Re: Crystal reports"
- Previous message: nib: "Re: Queries timing out...how to update query timeout value?"
- In reply to: bhp: "Transaction Log Filling Up - SQL 2000"
- Next in thread: bhp: "Re: Transaction Log Filling Up - SQL 2000"
- Reply: bhp: "Re: Transaction Log Filling Up - SQL 2000"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 4 May 2004 22:05:28 -0500
The best solution is to issue a log backup to cleanly backup the
transactions and truncate the inactive portion of the log. There should be
no need to shrink the log file. If it wasn't large enough to handle an
ALTER table it probably wasn't large enough to begin with.
-- Andrew J. Kelly SQL MVP "bhp" <dbaqueen2000@yahoo.com> wrote in message news:2615daf8.0405041619.16c32b9c@posting.google.com... > I am really confused and hope someone can help me out. I have a > script that will be distributed to our customer base in an upgrade of > our software. This script is ALTERing many tables to ADD a column > with a DEFAULT. Some of these tables have hundreds of thousands > records. When I am running the script the Transaction Log has been > filling up on some customer dbs. We decided to issue a CHECKPOINT > after the ALTER immediately followed by SHRINKFILE of the Trans Log. > Is this a feasible solution? Or would it be better to TRUNCATE the > LOG after each ALTER? Or am I totally missing the boat here? Any > suggestions would be greatly appreciated.
- Next message: Dwight: "Re: Crystal reports"
- Previous message: nib: "Re: Queries timing out...how to update query timeout value?"
- In reply to: bhp: "Transaction Log Filling Up - SQL 2000"
- Next in thread: bhp: "Re: Transaction Log Filling Up - SQL 2000"
- Reply: bhp: "Re: Transaction Log Filling Up - SQL 2000"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|