?
Solved

Cannot find truncate log on checkpoint option anywhere

Posted on 2004-10-18
5
Medium Priority
?
973 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 375 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

Independent Software Vendors: 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

The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Suggested Courses

752 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