The statement BACKUP LOG is not allowed while the recovery model is SIMPLE. Use BACKUP DATABASE or change the recovery model using ALTER DATABASE.

Error Message:
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.

Severity level:
16.

Description:
This error message appears when you try to backup the log of a database that is in “Simple” recovery mode.

Consequences:
The T-SQL statement can be parsed, but causes the error at runtime.

Resolution:
Error of the Severity level 16 are generated by the user and can be fixed by the SQL Server user. You cannot backup the log of a database, which is in “Simple” recovery mode. If you need to backup the log, you must choose one of the two other available recovery modes. You can achieve this via the ALTER DATABASE command.

Versions:
All versions of SQL Server.

Example(s):
BACKUP LOG MyDatabase TO DISK = ‘A:Backup_log.bak’

Remarks:
In the above example we try to backup the log of the database MyDatabase. Because this database is in “Simple” recovery mode, the error is raised.

]]>

Leave a comment

Your email address will not be published.