November 17, 2010 at 11:07 am
I have a database on SQL 2000 and the log file fills up and will not free up unused space. I have tracked it down to the CHECKPOINT not running. After the nightly jobs run the log fills up to 68GB and 99% used space (DBCC SQLPERF(LogSpace)) I have also ran (DBCC OPENTRAN) came back with:
No active open transactions.
DBCC execution completed. If DBCC printed error messages, contact your system administrator.
After all of that all I do is run CHECKPOINT and the log file drops down to 300MB with 68GB free...
So may question is has anyone been able to fix this problem? I have done searches on this website but all of them lead to a dead end..
November 17, 2010 at 11:25 am
What is your setting for 'recovery interval'?
November 17, 2010 at 11:28 am
I doubt very much the issue is CHECKPOINT not running.
I'll bet your database is set to Recovery Mode = FULL, and you are not taking regular transaction log backups, so it's continues to expand.
select DATABASEPROPERTYEX(db_name(),'Recovery')
select DATABASEPROPERTYEX('SandBox','Recovery')
--change it to simple:
ALTER DATABASE [SandBox] SET RECOVERY SIMPLE WITH NO_WAIT
either change the recovery model to simple, or create a backup schedule.
Lowell
November 17, 2010 at 11:43 am
Recovery Mode is set to simple
November 17, 2010 at 11:49 am
ok, run this to find the current recovery interval setting:
USE master;
GO
EXEC sp_configure 'show advanced option', '1';
RECONFIGURE;
EXEC sp_configure;
USE master;
GO
if needed, lets set the interval to a shorter time
--The following example sets the system recovery interval to 3 minutes.
EXEC sp_configure 'recovery interval', '3';
RECONFIGURE WITH OVERRIDE;
Lowell
November 17, 2010 at 11:52 am
David Webb-200187 (11/17/2010)
What is your setting for 'recovery interval'?
Recovery interval is set at 0
November 17, 2010 at 1:24 pm
If this really is SQL Server 2000, it could be:
http://support.microsoft.com/kb/909369
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply