|   | ![]() |
|
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 Restoring a file or filegroupThe full command to restore a file or filegroup is as follows with the options as described previously.
This boils down to the following command:
Restore from an explicit disk device
Restore from an undefined network disk device and overwrite the existing file
Restore from a tape device and leave the tape in the drive
Restore multiple filegroups from a tape device and do not recover due to transaction logs being applied
Restoring a differential backup Restoring a differential backup utilizes the same command and syntax and a full database restore. Restoring a transaction log The command to restore a transaction log is as follows with the options as noted in the
table above with execptions noted below: The stopat option allows for a point in time restore of the transaction log. This is normally used if you know the transaction log got corrupted at some point or commands were issued after a specific time that you do not want applied. This boils down to the following command:
Restore a log from an explicit disk device
Restore log from an undefined network disk device using the third file in the backup
Restore multiple logs from a tape device and leave the tape in the drive
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.