Setting the database in recovery mode

  • Hello,

     

    Can anybody tell me how to set a online database in recovery mode? When that is possible i can restore the logs!

     

    Thanks

  • Hi,

    You can't put a database in recovery status before restoring a backup.  You should restore the full backup using WITH NORECOVERY so uncommitted transactions are not rolled back.  Then restore all  log backups except the last one using WITH NORECOVERY.  The last log backup is restored using WITH RECOVERY.  See 'Restore scenarios' in BooksOnLine for examples.

    Greg

    Greg

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply