December 2002
Intermediate to advanced
1560 pages
40h 44m
English
Listings 16.11 through 16.14 show some samples of restoring the database using T-SQL scripts.
--Restore northwind from the first backup on device nwbackup -- Recover the database USE MASTER RESTORE DATABASE Northwind FROM nwbackup WITH FILE = 1, RECOVERY |
-- Restore northwind from the first backup on device nwbackup -- Restore two logs from device nwlogback -- Recover the database USE MASTER RESTORE DATABASE northwind FROM nwbackup WITH FILE = 1, NORECOVERY GO RESTORE LOG northwind FROM nwlogback WITH FILE = 1, NORECOVERY GO RESTORE LOG northwind FROM nwlogback WITH FILE = 2, RECOVERY |
Read now
Unlock full access