IT tutorials
 
Database
 

Microsoft SQL Server 2012 : Recovery Operations (part 2) - Performing the Restore with Management Studio

3/12/2014 2:54:56 AM
- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019

Performing the Restore with Management Studio

As with the backup command, you can launch the restore from within Management Studio by following these steps:

1. Select the database to be restored.
2. From the context or Action menu, select Tasks ? Restore ? Database to open the SQL Server Restore database form.

The Restore Database form, as shown in Figure 1, does a great job of intelligently navigating the potential chaos of the backup sequences, and it always offers only legal restore options.

Figure 1 Only the correct sequence of restoring from multiple backup files is possible from Management Studio's Restore Database form.

21.6

The selection you make at the top of the form is the name of the database after the restore.

The Restore Database form can restore database backups, file backups, or backups from a device (that is, a tape drive). The Restore Wizard presents a hierarchical tree of backups, whereas the filegroups or file restore lists the files and must be manually restored in the correct order.

The Backup Sets to Restore option displays the available backups. Management Studio uses the backup history in the msdb system database and creates a restore plan. For example, under the full recovery model, the restore plan selects the full database backup followed by the most recent differential database backup (if available) followed by subsequent log backups.

Note
If the database is in Full or Bulk-Logged recovery mode and you did not already take a tail-log backup, the Restore Database form will automatically select the option for you under the Options page to perform a tail-log backup.

If the backup history, stored in msdb, is not available — because the server is being rebuilt or the database is being restored to a different server — then use the Restore: From Device option to manually select the specific backup disk file and backup instance within the file.

The process of one full backup, the second differential backup, and the following 15 transaction-log backups can be correctly sequenced by selecting the final transaction log to be restored. Restoring the 17 backup files is performed with a single click of the OK button.

If one of the backup files being restored is a transaction log, the Point in Time Restore option becomes available because only a transaction log can restore some of the transactions. The point-in-time restore will restore all transactions committed before the time selected. A new option introduced in the Restore Database form SQL Server 2012 is the Backup Timeline form, as show in in Figure 2. You can access this dialog by clicking on the Timeline button on the Restore Database (General page) pane. This Backup Timeline dialog gives you an easy, visual indicator to help select which point-in-time you'd like to restore the current database to.

Figure 2 The Timeline.

21.7

The Options page of the Restore Database form is shown in Figure 3.

Figure 3 The Options page of the Restore Database form.

21.8

The Options tab of the Restore Database dialog box offers a few significant options:

  • The Overwrite the Existing Database option disables a safety check that prevents Database A backup from being restored as Database B and accidentally overwriting an existing Database B.
  • The Preserve the Replication Settings option preserves the replication settings when restoring a published database on a different SQL Server (other than the SQL Server where the database was created). This option is available only with the Leave the Database Ready for Use by Rolling Back the Uncommitted Transactions option.
  • The Prompt Before Restoring Each Backup option prompts before continuing to restore the next backup in the restore sequence. This option is useful when you restore from tape backups and need to swap tapes.
  • The Restrict Access to the Restored Database option restricts access to the restored database only to the members of db_owner, dbcreator, or sysadmin.
  • Because it is possible that the database is restored to a different file location than the original backup, the Restore the Database Files As section in the Files page includes a way to assign new file locations.
  • There are three Recovery state options to choose from when restoring a database:
    • Use the RESTORE WITH RECOVERY option to restore the final backup. This option recovers the database and does not allow additional transaction logs to be restored.
    • The RESTORE WITH NORECOVERY option leaves the database non-operational and enables you to restore additional backups. If you select this option, the Preserve Replication Settings option is unavailable.
    • The RESTORE WITH STANDBY option leaves the database in a standby mode in which the database is available for limited read-only access.

If only certain files or filegroups are restored, select Tasks ? Restore ? File or Filegroups to select the files or filegroups you want to restore.

 
Others
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
Technology FAQ
- Is possible to just to use a wireless router to extend wireless access to wireless access points?
- Ruby - Insert Struct to MySql
- how to find my Symantec pcAnywhere serial number
- About direct X / Open GL issue
- How to determine eclipse version?
- What SAN cert Exchange 2010 for UM, OA?
- How do I populate a SQL Express table from Excel file?
- code for express check out with Paypal.
- Problem with Templated User Control
- ShellExecute SW_HIDE
programming4us programming4us