Always restore with NORECOVERY

·

Comments

5 responses to “Always restore with NORECOVERY”

  1. w4g3n3r Avatar
    w4g3n3r

    Why does RECOVERY make it harder to recover from an accidental restore?

    Like

    1. way0utwest Avatar

      Because if you make a mistake, you can’t go back. If you have logs to restore, a tail log, a diff, it’s easy to make a mistake. There’s no more effort to add RECOVERY. It’s just a habit you get into. If you always restore with NORECOVERY, then you never make a mistake on a large restore. The bottom line is there’s no penalty for using NORECOVERY, but potentially a big penalty for using nothing or RECOVERY.

      Like

  2. John Lancashire Avatar
    John Lancashire

    An excellent tip! I’m an Oracle DBA with 15 years experience who by default has become the database (per se) lead for all technologies at our site. I just checked out Steve’s tip against BOL and realise that this is effectively what I have been doing with Oracle since forever. (RESTORE then RECOVER). It puts you, the DBA, with your brain and your knowledge in control.

    Like

  3. G Bryant McClellan Avatar

    Good tip Steve. Simply knowing the difference makes one an informed DBA. Once you make the choice, it is in your hands but understanding the difference is what makes for a better DBA.

    Like

  4. dream Avatar
    dream

    If you get time, I’d love it if you would walk through an example of an “oops!” moment, showing the impact of using RECOVERY vs. NORECOVERY.

    Like