How to backup and restore a database in Microsoft SQL Server 2005 Step by step guide.

Similar documents
Migrating Eclipse.net from SQL Server 2005 to SQL Server 2008

Restoring data from a backup

How to Restore a Windows System to Bare Metal

End User Enterprise File Services Guide

IQSweb Migration Steps

Guide infinias Intelli-M Access How to Backup and Restore Database

IP-guard v3.2 Migration Guideline

2012 Peer Small Business Data

v5: How to restore Exchange databases

Backup and Restore System

RECOMMENDED PROCEDURE

Installation Instructions MSSQL

Verifying a Restore Repository

Full Image Restore with Modern Standby

Service Bulletin Backup and restore Hard Disk Drive

Unicon TM CL Series Software REFERENCE MANUAL

How to Archive s: Windows PC

Milestone XProtect Corporate 4.0 Step-by-Step Guide How to Back Up, Move and Restore the Management Server

Backup and Preparation Procedures. For IT STAFF. Critical Before Proceeding with Rollovers

GV Director Restoring USB Image / Frame and Panel Installation

Fairfield University Using Xythos for File Storage

Unicon TM CL Series Software REFERENCE MANUAL

Perceptive Matching Engine

Abila MIP DrillPoint Reports. Installation Guide

How to download a program (IQ POS, IQ Business, IQ Enterprise, IQ Payroll, IQ Restaurant from our website (

Acronis Backup & Recovery 11 Beta Advanced Editions

Perform a Server Move for Junxure

Manual HR & Payroll v2011 Restores Using Tape Backups

Server Manager User and Permissions Setup

Physical Imaging Standard - Restoring to Hyper-V Virtual Machine

File Protection. Whitepaper

Copyright Tools4ever B.V. All rights reserved.

File Protection Whitepaper

Administrator s Guide

Restore Tab. User Guide

File Protection Whitepaper

IQSweb Reference B. SQL Server 2008 R2 and Express Installation Instructions

Using BOSS TONE STUDIO for ME-25

XLink EzRollBack Pro User Manual Table Contents

Alloy Navigator 6 Suite 6 version Release Notes

Archivists Toolkit Internal Database

System Administrator SQL Basics

Data Containers. User Guide

Acronis Backup & Recovery 10 Advanced Editions

Attix 5 Server Edition

Restoring the Server to Bare Metal

SWCS 4.2 Server Manager Users Guide Revision /22/2012 Solatech, Inc.

WIN-911 Standard/Interactive/Advanced Configuration Backup and Restore

How to install the software of ZNS8022

Download and Backup Configuration Files on the WAP131 and WAP351

Client Installation Manual. For Version 2.0.2

1. Overview... 2 Documentation... 2 Licensing... 2 File Archiving requirements... 2

Installing SQL 2005 Express Edition

25 Saving Setting Guide Import/Export Nodes and Symbols

WhatsUp Gold 2016 Installation and Configuration Guide

D&C Scheme Editor 5.2 Installing Instructions

Using BOSS TONE STUDIO for GT-1000

Managing PC Recovery Settings and Functions

Backup everything to cloud / local storage. CloudBacko Home. Essential steps to get started

Installation Manual. Fleet Maintenance Software. Version 6.4

Installing Visual Studio for Report Design

[SQL MAINTENANCE PLAN] Create a maintenance plan to do integrity check, back up, shrink and clean old file created by the plan on database.

Lasso Continuous Data Protection Lasso CDP Client Guide August 2005, Version Lasso CDP Client Guide Page 1 of All Rights Reserved.

Configuration Database Backup Guide

Nikon Capture NX "How To..." Series

1. INTRODUCTION to Object Storage

Backup and Restore in Zen TDS SQL VERSION

Activant Solutions Inc. SQL 2005: Server Management

IMF Tune v5.6 - Moving the. Moving the Quarantine Database to New Hardware

Lab - Configure Data Backup and Recovery in Windows 7 and Vista

Administration GUIDE. OnePass Agent for Exchange Mailbox. Published On: 11/19/2013 V10 Service Pack 4A Page 1 of 177

Migrating ABECAS Insight

Jonas Activity Management Technical Deployment Guide

User Manual. Backup Utility for MiniStation MiniStation. v 2.0

Microsoft Skype for Business Deployment Guide. High-Availability Deployment

Backup. Lab: Backing. Exercise. 1. running, ADVENTUREWORKS\Student. administrator. wait for the. database engine. Properties.

MOBILE DATABASE VIEWER PLUS USER GUIDE

A backup is a copy of valued data, created as a replacement for situations when the original data is lost or corrupted.

Introduction. How Does it Work with Autodesk Vault? What is Microsoft Data Protection Manager (DPM)? autodesk vault

Enterprise Server Edition

How to update or recover the system program Ver.8.6

Backup database of Billy Blue's 4. Delete old calls from the online database Attach the backup db to consult the historical data

Step by Step SQL Server Alerts and Operator Notifications

Migrating from Bacs.IP to SmarterPay

USING SQL SERVER MANAGEMENT STUDIO TOOLS TO BACKUP AND MAINTAIN PORTFOLIOCENTER DATA

Using Servosity PRO/STD to Restore Your Files. This chapter describes different ways files can be restored from the backup server.

Symantec Backup Exec Quick Installation Guide

Version Live Backup Client for Mac User Guide. Ref: ALB.330.LBMCG For Mac OS X or later (Tiger) or 10.5.x (Leopard).

Apptix Online Backup by Mozy User Guide

Backup & Restore Instructions Copyright 2005 by VantageMed Corporation

Lotus Notes Template Installation User Guide

This Tech Note provides instructions on how to upgrade to ClearPass 6.7 from versions 6.5 and later.

Manual Backup Sql Server Express 2008 Schedule Database

Windows version involved: Windows 7, Windows Server 2008 R2.

REGISTERING ENTRIES IN THE ADDRESS BOOK:

Hyper-V Rapid Recovery - Recovery in Place

Click Studios. Passwordstate. Upgrade Instructions to V5.6

How to Install, Configure and Use sftp (Windows Version)

mce100+ getting started guide Install mce100+ The disc will run and display the below screen: Choose Install mce to continue

Chapter 5: Database Synchronization

Transcription:

How to backup and restore a database in Microsoft SQL Server 2005 Step by step guide. Taking the backup 1) Open SQL Server Management Studio 2) In the object explorer, Expand databases folder and locate the database 3) Right click on the database then select Tasks Backup (Figure 1) 4) A dialog box will appear to configure backup (Figure 1) Cassian Menol Razeek Page 1 12/1/2008

5) In the dialog box make following selections (Figure 2): i. Make sure the appropriate database is selected in the Database drop down list ii. Select Full as backup type if it is not selected already iii. Make sure 0 days are selected as the number of days to expire backup set (Figure 2) Cassian Menol Razeek Page 2 12/1/2008

6) Select a place to store backup files: i. In destination section select Disk option and click on the Add button ii. Select Backup Destination dialog box will appear for you to select the place to store the backup file. iii. Click on brows ( ) button to choose the destination (Figure 3) (Figure 3) Cassian Menol Razeek Page 3 12/1/2008

iv. As illustrated in the figure below (Figure 4) select the folder you want to store the backup and type in a file name in File Name text area. Note: Remember to add the extension.bak at the end of the file name since it is not automatically added. This is not necessary but having this extension makes it easy to locate the file when restoring the database. v. Once you are done click on OK button. (Figure 4) Cassian Menol Razeek Page 4 12/1/2008

7) When you return to the Backup database dialog box you will see the destination you selected in Destination area (Figure 5) (Figure 5) Cassian Menol Razeek Page 5 12/1/2008

8) You will be given a message after backing up the database (Figure 6). Now you can find the database backup file from the specified location. (Figure 6) Cassian Menol Razeek Page 6 12/1/2008

Restoring the Database Restore the database using the already taken full backup (Figure 7-a, 7-b): 1) Right click on the database then select Tasks Restore Database i. If you have maintained a backup that backup should be displayed in the Select the backup sets to restore: area. Select your backup. a. If your backup is not displayed or if you are restoring to a new SQL server instance then select From device option (instead of From database option) and then click on the browse ( ) button b. Then on the resulting dialog box click on Add button and select the database backup set from your location. ii. Since we are not using a tail log we have to overwrite our database from our backup. For that go to Options page from the Select a page section and select Overwrite the existing database check box. If you want to preserve existing replication settings select Preserve the replication settings check box as well. iii. Click OK iv. The message box will appear after successful completion. (Figure 7-a) Cassian Menol Razeek Page 7 12/1/2008

(Figure 7-b) Cassian Menol Razeek Page 8 12/1/2008

Restoring the database with the tail log: When we are restoring a backup we are only able to restore data stored before taking the backup. The data stored after time of backup are lost most of the time. SQL Server 2005 has provided a mechanism to restore a database with later transactions which even recovers transactions taken place after taking the backup. Steps to recover a database using the tail log. Before proceed with the transactional log backup and put the database in Restoring mode you must make sure that you have taken a Full backup of your database. 2) First you have to take a tail log backup: i. Right click on the database and select backup ii. Select Transactional Log option from Backup type drop down list (Figure 8) (Figure 8) Cassian Menol Razeek Page 9 12/1/2008

iii. Go to the Options page by clicking on the options link in the Select a page area: iv. In the Transactional Log section select the option Back up the tail of the log, and leave the database in the restoring state (Figure 9) v. Click on OK button to take the transactional log backup. (Figure 9) 3) recover the database using the Full backup and Tail Log i. In the Object explorer you will notice your database has gone to the restoring stage and your database is not operational until it is restored (Figure 10). (Figure 10) Cassian Menol Razeek Page 10 12/1/2008

ii. Right click on the database then select Tasks Restore Database iii. If you have made your backups successfully you will see both your full and transactional log backup in the Select the backup sets to restore: area (Figure 11-a). iv. If you see several versions of your backups select the most recent version of Full backup and the most recent version of Transaction Log backup using the Start Date and Finish Date columns in the grid. v. In the Options page select Preserve the replication settings check box to preserve your replication settings (Figure 11-b). vi. Click on Ok button and you should see a message box showing that the operation was successful. (Figure 11-a) Cassian Menol Razeek Page 11 12/1/2008

(Figure 11-b) Cassian Menol Razeek Page 12 12/1/2008