Solved

Cannot find truncate log on checkpoint option anywhere

Posted on 2004-10-18
5
965 Views
Last Modified: 2012-06-21
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
Comment
Question by:gatelesis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 34

Accepted Solution

by:
arbert earned 125 total points
ID: 12344669
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
 

Author Comment

by:gatelesis
ID: 12346624
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
 
LVL 34

Expert Comment

by:arbert
ID: 12349234
Create a SQL Agent job that has

DBCC SHRINFILE(yourdatabase_log,0)


As the command to run....
0
 
LVL 1

Expert Comment

by:wyckedone1
ID: 12585605
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
 
LVL 34

Expert Comment

by:arbert
ID: 12585928
That option is there for backwards compatibility and shouldn't be used.....

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question