- Right click on the Server, select Tasks and Restore
- In General pane, select From device and locate the .bak file to restore from.
- Select all but the final element from within the .bak file to restore
- Select database name from To database
- In Options select RESTORE WITH NORECOVERY
- Run through options 1-4 again, selecting the transaction log to restore.
- In Options select RESTORE WITH RECOVERY
- The database has now been restored, recovered and ready for use
If a database is restored onto another server, the backup information is not restored with the database, as it is held in the msdb database of the original system.
There may be a time when a damaged page messes up your database. First of all, you need to determine which page is damaged. This can be done by looking in System databases > msdb > Tables > dbo.suspect_pages. Then restore the page like so:
RESTORE DATABASE AdventureWorks
PAGE = '1:160' -- '1'=File_ID, '610'=page_ID
FROM AWBackup -- this is your backup device
WITH NORECOVERY
No comments:
Post a Comment