Sql-server – Risks of Switching Between Simple & Full Recovery in SQL Server 2005

sql server

Ok, so we have several instances on several nodes in a clustered environment. One of them is for JD Edwards stuff and has had an issue lately with a job failing because there was not space in the tempdb to complete it. The code for this job hasn't changed in YEARS, and yet I realize the data size may have.

Anyway, after setting the tempdb to some Autogrowth that wouldn't bork that drive I started digging deeper on this install. It seems there are some scheduled jobs that are switching the recovery mode back and forth from Simple to Full with backups supposed to be happening around those for some reason. I believe this is what caused the T-Logs backup to fail at some point and thus not have enough room for the tempdb itself to complete these long-standing JDE jobs.

So questions:

  1. Am I totally ignorant to think that switching back and forth from Simple to Full is a bad idea on a regular basis?
  2. If I am right that this is a bad idea what other scenarios other than the one I have already described can I use to illustrate this to my Sr. DBA who must have created this situation?

TIA

Best Answer

Yes, it is a bad idea.

Log backups relate to a full/diff backup at some point (and sequentially to each other). Any change in recovery model will invalidate the restore sequence.

So for this sequence you can only restore as far as step 2. Log backups from step 4 on are useless.

  1. Full
  2. Log
  3. Change recovery model
  4. Log
  5. Log

For everything you ever needed to know, read Paul Randal's backup/restore section