Warning 166: Failed to delete old entries in local history
Bryant
Posts: 20 Bronze 2
Yesterday afternoon my transaction log backup jobs started failing with the following message:
I performed a DBCC CHECKDB on the msdb database and no errors were discovered. The backups appear to be running fine but the msdb cleanup is failing at the end of the job so I get a lot of job failure alerts in my mailbox.
I have SQL Backup Pro version 5.1.0.2781 running on a SQL Server 2000 default instance. Let me know if there is any other information that I can provide that will help you diagnose this better.
Thank you,
Bryant
8/9/2007 8:03:41 AM: Warning 166: Failed to delete old entries in local history tables: Error running ExecFast command: Floating point division by zero.
I performed a DBCC CHECKDB on the msdb database and no errors were discovered. The backups appear to be running fine but the msdb cleanup is failing at the end of the job so I get a lot of job failure alerts in my mailbox.
I have SQL Backup Pro version 5.1.0.2781 running on a SQL Server 2000 default instance. Let me know if there is any other information that I can provide that will help you diagnose this better.
Thank you,
Bryant
Comments
Warning 166 is raised when old data in this database could not be raised. In your case, it appears that the SQL command to erase the data is invalid. At this point, I'm guessing that some bits of data are incomplete in the database, hence causing the error.
I have sent you, via private message, instructions on how to turn on debugging to identify the offending SQL command.
Your transaction log backup is fine, and so are the details in the msdb tables.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Any idea what might be causing this? I will send Pete a debug file after I submit this post to see what you can make of it. This server is getting old but we won't have everything moved to new equipment until at least April so I would like to see what can be done to prevent these issues in the future. I am wide open to the possibility that there is something goofy on this server and I can provide detailed server information to Red Gate support.
This is only occurring on the master database.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8