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.




Related Articles :

  • No Related Articles Found

No comments yet... Be the first to leave a reply!

Software Reviews | Book Reviews | FAQs | Tips | Articles | Performance Tuning | Audit | BI | Clustering | Developer | Reporting | DBA | ASP.NET Ado | Views tips | | Developer FAQs | Replication Tips | OS Tips | Misc Tips | Index Tuning Tips | Hints Tips | High Availability Tips | Hardware Tips | ETL Tips | Components Tips | Configuration Tips | App Dev Tips | OLAP Tips | Admin Tips | Software Reviews | Error | Clustering FAQs | Performance Tuning FAQs | DBA FAQs |