question

Fatherjack avatar image
Fatherjack asked

Is the recovery mode of a database saved in a backup

Hi,

If I have a database in Full Recovery and create a backup and then change it to Bulk Logged or Simple and then Restore the backup will the recovery mode change back to Full?

[Note: this is a seeder question. If you have over 2k reputation then please hold off adding an answer for 7 days (20/Mar/2010)]

backuprestoreseeder-questionrecovery-mode
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

CirqueDeSQLeil avatar image
CirqueDeSQLeil answered

Without testing this specific scenario - YES. I am assuming the overwrite is selected, you are restoring back to the same server, etc.

My scenario is that we backup a database that is in full mode, restore it on another server. What I have done in the past is change the recovery model on the target server and then let the restore overwrite it. The recovery model on the target server will change back to that of the source server upon restore.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Steinar avatar image
Steinar answered

The answer is Yes

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Lynn Pettis avatar image
Lynn Pettis answered

I'll answer your question with a question. If you backup the database while it is using the Full Recovery Model, and subsequently change the recovery model of the database to Simple of Bulk_Logged, how would the backup know it was changed when you restore it?

Yes, if after you subsequently change the recovery model, you then restore to that particular backup file the recovery model will change back to Full.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.