• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 986
  • Last Modified:

Cannot find truncate log on checkpoint option anywhere

I have set up a replication between two servers. Now my logs are filling up, both the distribution and the live database transaction log.  I've been reading posts where the solution is to de-select truncate log on checkpoint, however, I cannot find this under any option, be it during backup or in the database properties.

I am running Sql 2000  with SP3
0
gatelesis
Asked:
gatelesis
  • 3
1 Solution
 
arbertCommented:
Truncate log on checkpoint doesn't really exist in SQL2000 (it's about the same as choosing your database recovery mode as Simple).

Do you have a backup process in place and a logfile shrink after wards?
0
 
gatelesisAuthor Commented:
Gotcha.  I did change it to Full because I do want the option to be disabled.  

I have a regular backup.  I also have a maintenance plan.   Where is the option to shrink the logfile?  ]]]

Thanks
0
 
arbertCommented:
Create a SQL Agent job that has

DBCC SHRINFILE(yourdatabase_log,0)


As the command to run....
0
 
wyckedone1Commented:
Actually, there is a "truncate log on checkpoint" option in SQL 2000.  You can't access it through the Enterprise manager.  You have to use Query Analyzer.  In Query Analyzer, run the following to turn on the option (you must use single quotes):

sp_dboption 'DB', 'trunc. log on chkpt.', 'true'

Replace "DB" with the name of the database.  If it is enabled, and you want it disabled, change 'true' to 'false'.  Either way, you have to stop/start the SQL Agent for the change to take effect.

With this enabled, your log file will automatically get truncated when trasactions are flagged as complete.
0
 
arbertCommented:
That option is there for backwards compatibility and shouldn't be used.....

http://support.microsoft.com/kb/272093/EN-US/
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now