|   | ![]() |
|
Backup Overview 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 The no recovery option specifies that transactions are not rolled back or rolled forward. During the restore process. If multiple restores are needed to bring the database up to date, you are required to use the norecovery option. You would use the recovery option during the final restore to cause all transactions to be rolled back or rolled forward in the transaction logs. The recovery completes the restore operation.Standby is an extremely useful option to apply during restores. This allows the database to be accessible in a read only mode between transaction log restores. You can then verify the integrity of a database and the existence of data. This option is normally used for standby servers. You would restore backups to the standby server using the standby option. If you would ever need to bring the standby server online, you would simply issue the restore option using the recover option to cause all transactions to roll forward and roll back. This boils down to the following command:
Restore from an explicit disk device
Restore from an undefined network disk device using the second file in the backup and put it in dbo use only mode
Restore from a tape device and leave the tape in the drive
Restore from a tape device, rename the database, and eject the tape
Restore from a tape device resuming a restore
Restore from an explicit disk device and leave the server in a standby mode
Restore from an explicit disk device and do not recover, because transaction logs will be applied
Restore from a disk device, rename the database, and move to a different location
Backup Overview 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
All content on this site, except where noted, represents an original work of Michael R. Hotek and is protected by applicable copyright laws. The SQL Server FAQ is the sole work of Neil Pike. No page, portion of a page, or download may be used for commercial purposes in whole or in part without the express, written permission of the applicable author.