Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

One of our SQL databases recovery model keeps resetting from Simple to Full causing the log file to fill up.

The only thing we could think of was that IT had been restoring that database. Would this default the recovery setting to Full?

share|improve this question

Restoring a database will set its recovery mode to the same as the source database was when it was backed up; there is no default, it is an attribute of the database stored in the backup and retained when it is restored. If you want simple mode, you'd have to change it after the restore is complete.

share|improve this answer

It is a simple change in the GUI or in SQL to do this, and there is no obvious mechanism to allow auditting.

If this is in development using a VS2008 or VS2010 database project, the default settings within the project will change the recovery model everytime you deploy to the database (even if there are no structural changes to apply).

The recovery model is set in the selected .sqlsettings file (the default one is found under Properties folder, and is selected in project properties). I've not found a setting to tell VS to not set recovery model (lots of options in .sqldepolyment file, but not this).

share|improve this answer

A database won't switch from simple recovery to full unless a command is issued to do this, or the database is restored - and the database backed up was in full recovery mode.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.