You are on page 1of 7

Backup and Restore with SQL Express 2005

The purpose of creating a backup is to provide for the recovery of a damaged database. In normal
business, a backup and restoration strategy should be developed to prevent work loss in the event
of a disaster. The amount of work that may be lost due to a damaged database can be minimized
when time is taken to design a back up and restore strategy that best meets the needs of that
particular business.

A backup strategy should include a method for backup and a method for restoring databases on a
normal time period, and a schedule of frequency of creating backups. Each company needs to
investigate the production goals of their organization, the nature of the databases they use, and
the personnel available to manage backups, as well as space to store backups and security of the
stored data.

This document provides instruction for the backup and restoration of data using SQL Server
Management Studio Express 2005.

Backup Procedure
SQL Server Management Studio Express can be installed from the Supplemental Components
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, select this tool from the
Microsoft start button on the task bar by clicking Start, All Programs, SQL Server Management
Studio Express.

1. Select the server name, and use Windows


Authentication (this was installed with SQL 2005
Express as default). Select the connect button.

2. The SQL Server Management Studio Express will


open. The display is shown in two panes, the
object explorer on the left, and the summary
screen on the right.

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

Under System Databases the system tables are displayed. These are the Master, the Model
the MSDB, the Resource, and Tempdb.
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, or
differential backup from the Backup Type field.
A full backup contains all the data in the database. A differential backup contains the data that
has 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 specific
number of days, by selecting After, and entering a number of days in the day field. Choose to
have the backup expire on a specific date by entering a specific date in the date field.
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 delete
a 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 Append
to 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 backed
up.
18. If backing up a tape drive has been selected in the destination field of the general page, the
Unload the Tape after Backup selection will be active. Checking this selection activates the
rewind the tape before unloading option.
19. Select OK to initiate the backup. When the backup is complete, the following screen will
display.
Restore Procedure

To Restore a Full Database Backup

SQL Server Management Studio Express can be installed from the Supplemental Components
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, select this tool from the
Microsoft start button on the task bar by clicking Start, All Programs, SQL Server Management
Studio Express.

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

The object explorer initially displays databases, security, server objects, replication, and
management. 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.


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 page
of 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. Choose
a 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.
10. Restore Options:

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

Preserve the replication settings – Preserves the replication settings when restoring a
published database to a server other than the one on which the database was created. This
option is only available with the leave the database ready for use by rolling back the
uncommitted transactions option, which is equal to restoring a backup with the recovery
option.

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

Restrict access to the restored database – The restored database is only available to
members 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 a
new 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 uncommitted
transactions. 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 is
selected, the Preserve replication settings option is unavailable.

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

Standby file
Specify 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.
Note: If restoring a backup of a relational database, the instance of wmedserv.exe must be
ended. Be sure that no other users or applications are using the system before beginning this
process.
1. Select Control/Alt/Delete to bring up the Windows Security Dialog box, and select Task
Manager.
2. Select the Processes tab. Locate wmedserv.exe in the list, and select it.
3. Click the End Process button, and close the Task Manager.
4. Open the Microsoft SQL Server Management Studio Express to complete the restore
procedure.

You might also like