Backup and Restore With SQL Express 2005

download Backup and Restore With SQL Express 2005

of 7

Transcript of Backup and Restore With SQL Express 2005

  • 7/29/2019 Backup and Restore With SQL Express 2005

    1/7

  • 7/29/2019 Backup and Restore With SQL Express 2005

    2/7

    3. Select Databases, and select a database to back up.

    4. Right click the database, and select Tasks>Backup.The Backup Dialog box appears. The General View is selected in the Select a Page column

    (left column).

    5. The browse button may be selected to choose a different database for backup. Select full, ordifferential backup from the Backup Type field.

    A full backup contains all the data in the database. A differential backup contains the data thathas changed since the last full backup.6. Select Database as the Backup component.7. In Backup Set, accept the default name, or select a different name.8. Add a description in the description field as desired.9. In the Backup Set will Expire field, select a date when the backup may expire. When the

    backup set expires, it may be overwritten. Choose to have the set expire after a specificnumber of days, by selecting After, and entering a number of days in the day field. Choose tohave the backup expire on a specific date by entering a specific date in the date field.

  • 7/29/2019 Backup and Restore With SQL Express 2005

    3/7

    10. Choose the Type of destination the backup should be made to: disk or tape. Choose the

    location of the path, or click add. Selected paths will appear in the list box. Remove will deletea selected destination. Select Contents to view the paths available.

    11. Select Options on the left Select a pane column.

    12. In the Overwrite Media field, select Back up to Existing Media Set by choosing either Appendto the Existing backup set, or Overwrite all Existing Backup Sets.

    13. Select the check boxes to select media set names and backup set expiration.14. Enter a media set name. If left blank, a media set with a blank name is created. If a name is

    entered, the media tape or disk is checked to assure it matches the name entered.15. Back up to a new media set may be selected and will erase all existing backup sets.16. Enter a new media set name in the field, and a description in the new media set description

    field.17. In the Transaction Log field, the options are inactive unless a transaction log is being backedup.

    18. If backing up a tape drive has been selected in the destination field of the general page, theUnload the Tape after Backup selection will be active. Checking this selection activates therewind the tape before unloading option.

    19. Select OK to initiate the backup. When the backup is complete, the following screen willdisplay.

  • 7/29/2019 Backup and Restore With SQL Express 2005

    4/7

    Restore Procedure

    To Restore a Full Database Backup

    SQL Server Management Studio Express CTP can be installed from the SupplementalComponents CD that is shipped with the AccuMark software. The installer must be an

    Administrator on the local machine to make backups. Once this program has been installed, selectthis tool from the Microsoft start button on the task bar by clicking Start, All Programs, SQL ServerManagement Studio Express.

    Select the server name, and use Windows Authentication (this was installed with SQL 2005Express as default). Select the connect button.The SQL Server Management Studio Express will open. The display is shown in two panes, theobject explorer on the left, and the summary screen on the right.

    The object explorer initially displays databases, security, server objects, replication, andmanagement. Select Databases, and system Databases.

    1. Select Databases, and choose a database to Restore.

    2. Click the right mouse button to select Tasks>Restore>Database.

  • 7/29/2019 Backup and Restore With SQL Express 2005

    5/7

    3. Click the database, the Restore Database dialog box will open.

    4. The name of the restore database will appear in the Database list box on the General pageof the display. To create a new database, enter the new name in the field.

    5. In the Point in time Text box, the most recent possible time will be posted by default. Choosea different time by clicking the browse button, and selecting the desired time.

    6. Select the backup sets to restore from the database. Enter the database name in the field.7. From Device, click the browse button to open the specify backup dialog box. In the Backup

    Media field, select the device.

    8. Select the backups to restore in the backup Sets to Restore Field.9. To select advanced options, click on Options in the Select a Page Pane.

  • 7/29/2019 Backup and Restore With SQL Express 2005

    6/7

    10. Restore Options:

    Overwrite the Existing Database The restore operation should overwrite existing databasesand related files if another database or file exists with the same name.

    Preserve the replication settings Preserves the replication settings when restoring apublished database to a server other than the one on which the database was created. Thisoption is only available with the leave the database ready for use by rolling back theuncommitted transactions option, which is equal to restoring a backup with the recoveryoption.

    Prompt before restoring each backup Confirm before restoring the backup set.

    Restrict access to the restored database The restored database is only available tomembers of db_owner, dbcreator, or sysadmin.

    11. Restore the Database Files as:The original database file names are displayed. The path and name of any of the files to be

    restored may be changed.Original File Name (column heading): the full path of a source backup file.Restore As (column heading): the full path of the database file to be restored. To specify anew restore file, click the text box and edit the suggested path and file name.

    12. Recovery State:Leave the database ready for use by rolling back the uncommitted transactions.Additional transaction logs cannot be restored (Restore with Recovery)Recovers the database.

    Leave the database non-operational, and do not roll back the uncommittedtransactions. Additional transaction logs can be restored. (Restore with Norecovery)Leaves the database in the restoring state. To recover the database, another restore will

    need to be performed using the previous Restore with Recovery option. If this option isselected, the Preserve replication settings option is unavailable.

    Leave the database in read-only mode. Undo uncommitted transactions, but save theundo actions in a standby file so that the recovery effects can be reverted. (Restorewith Standby)Leaves the database in a standby state. Choosing this option requires the specification of astandby file.

    Standby fileSpecify a standby file name in the Standby File text box.

    13. Select OK to initiate the Restore. When the Restore is complete, the following screen will

    display.

  • 7/29/2019 Backup and Restore With SQL Express 2005

    7/7