Article ID: 303292 - Last Review: October 3, 2003 - Revision: 3.2 BUG: Expired transaction log backups may not be deleted by maintenance planThis article was previously published under Q303292
BUG #: 353593 (SHILOH_BUGS)
On This PageSYMPTOMS
A maintenance plan job to backup transaction logs may fail. The "Transaction Log Backup Job for DB Maintenance Plan 'DB Maintenance Plan1'" job history may show the following error message:
The job failed. The Job was invoked by Schedule 3 (Schedule 1). The last step to run was step 1 (Step 1).
sqlmaint.exe failed. [SQLSTATE 42000] (Error 22029). The step failed.
Backup can not be performed on this database. This sub task is ignored
Backup can not be performed on database 'pubs'. This sub task is ignored.
This behavior occurs under the following circumstances:
CAUSE
Selecting the "Backup the transaction log as part of the maintenance plan" option directs SQLMaint.exe to execute a BACKUP LOG command on each database in the plan. Issuing a BACKUP LOG command against a database in SIMPLE recovery mode causes this error message:
Server: Msg 4208, Level 16, State 1, Line 1 The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE. Server: Msg 3013, Level 16, State 1, Line 1 BACKUP LOG is terminating abnormally. WORKAROUND
To work around this problem either:
STATUS
Microsoft has confirmed this to be a problem in SQL Server 2000.
MORE INFORMATION
The SIMPLE recovery model is equivalent to selecting the Select Into/Bulk copy and Trunc. log on Chkpt options in previous versions of SQL Server. You cannot perform a transaction log backup for databases that have their recovery model set to SIMPLE.
REFERENCESFor more information, refer to the "Selecting a Recovery Model" topic in SQL Server Books Online. | Article Translations
|
Back to the top
