Technical Script AIST3410 Database Management systems p 1



Similar documents
Configuration Guide. Remote Backups How-To Guide. Overview

Lab: Data Backup and Recovery in Windows XP

Lab - Data Backup and Recovery in Windows XP

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Configuring Outlook 2013

QUANTIFY INSTALLATION GUIDE

Protecting SQL Server Databases Software Pursuits, Inc.

1. Open Thunderbird. If the Import Wizard window opens, select Don t import anything and click Next and go to step 3.

BSDI Advanced Fitness & Wellness Software

5.6.2 Optional Lab: Restore Points in Windows Vista

DSS Support Backup / Restore DSS Databases using Windows Backup Windows XP Windows 2003 Server

How to Create a Delegated Administrator User Role / To create a Delegated Administrator user role Page 1

Installing a Browser Security Certificate for PowerChute Business Edition Agent

Microsoft Access 2007 Advanced Queries

Instructions. Introduction

MSSQL quick start guide

Configuring Outlook 2010

BioWin Network Installation

Jolly Server Getting Started Guide

VirtualCenter Database Maintenance VirtualCenter 2.0.x and Microsoft SQL Server

How To Create A Replica In A Database On A Microsoft Powerbook (Ahem) On A Linux Server (A.K.A.A)

Technical Bulletin. SQL Express Backup Utility

1. Open the License Manager either via the Start Menu or from C:\Keri\DoorsNET directory.

How To Create An Easybelle History Database On A Microsoft Powerbook (Windows)

Outlook . Step 1: Open and Configure Outlook

Introduction. There are several bits of information that must be moved:

About database backups

Database Backup and Restore Instructions. Version 6.5. Instructions

Moving the Web Security Log Database

Video Administration Backup and Restore Procedures

Filtering with Microsoft Outlook

5.6.3 Lab: Registry Backup and Recovery in Windows XP

BackupAssist v6 quickstart guide

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

Diver-Office Backup and Restore the Database

USING STUFFIT DELUXE THE STUFFIT START PAGE CREATING ARCHIVES (COMPRESSED FILES)

BSDI Advanced Fitness & Wellness Software

Interfacing PC ChargePayment Server with Focus

Database Backup Datacolor Match Pigment and Datacolor Tools

How to Copy A SQL Database SQL Server Express (Making a History Company)

LPR for Windows 95/98/Me/2000/XP TCP/IP Printing User s Guide. Rev. 03 (November, 2001)

Also you need the C-MOR ISO file. This file you will find following this link:

Account Create for Outlook Express

SPHOL207: Database Snapshots with SharePoint 2013

How to recover IE Client


Installing a printer in Windows 95.

Creating Rules in Outlook

How To Manage Your Storage In Outlook On A Pc Or Macintosh Outlook On Pc Or Pc Or Ipa On A Macintosh Or Ipad On A Computer Or Ipo On A Laptop Or Ipod On A Desktop Or Ipoo On A

Installation Instruction STATISTICA Enterprise Small Business

Configuring Outlook 2013 For IMAP Connections

RDS Online Backup Suite v5.1 Brick-Level Exchange Backup

Configuring Outlook Express

Rentavault Online Backup. MS Exchange Mail Level Backup

Archiving Your Mail in Outlook 2010

How to set up your Secure in Outlook 2010*

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Automated backup. of the LumaSoft Gas database

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

TSM Studio Server User Guide

STEP BY STEP IIS, DotNET and SQL-Server Installation for an ARAS Innovator9x Test System

SELF SERVICE RESET PASSWORD MANAGEMENT BACKUP GUIDE

Transition from Pegasus Mail To Exchange/Outlook 2003

Installing LearningBay Enterprise Part 2

TM Online Storage: StorageSync

Overview... 2 How to Add New Documents... 3 Adding a Note / SMS or Phone Message... 3 Adding a New Letter How to Create Letter Templates...

How To Install Database Oasis On A Computer Or Computer (For Free)

Moving the TRITON Reporting Databases

Driver Updater Manual

Optional Lab: Schedule Task Using GUI and at Command in Windows 7

If you have questions or need assistance, contact PCS Technical Services using the contact information on page 10.

Database Operations (Backup/Restore/Move/Manage) Technical Support Engineering Rosslare Security NA For more information please see

Databoks Remote Backup. MS Exchange Mail Level Backup

educ Office Remove & create new Outlook profile

Indian Standards on DVDs. Installation Manual Version 1.0. Prepared by Everonn Education Ltd

Installation Instructions for 9555 USB Driver

How to Back Up and Restore an ACT! Database Answer ID 19211

DP-313 Wireless Print Server

NetBrain Enterprise Edition 6.0a NetBrain Server Backup and Failover Setup

To successfully initialize Microsoft Outlook (Outlook) the first time, settings need to be verified.

Solcon Online Backup. MS Exchange Mail Level Backup

Managing Online and Offline Archives in Outlook

USING FILERELICATIONPRO TO REPLICATE SQL SERVER

Restoring Sage Data Sage 200

MICROSOFT OUTLOOK 2011 SYNC ACCOUNTS AND BACKUP

AXIS 1440 Print Server For EPSON Printers: Product Update. Important Information for Windows

Appendix L: Running Hazus-MH with SQL Server 2005

@ptitude Observer. Installation Manual. Part No Revision G

BackupAssist v6 quickstart guide

How To Fix A Backup Error In A Windows Xp Server On A Windows (Windows) On A Pc Or Mac Xp (Windows 7) On An Uniden Computer (Windows 8) On Your Computer Or Your Computer (For

Active Directory Authentication Integration

CORPORATE SERVICE SETUP

MICROSTRATEGY 9.3 Supplement Files Setup Transaction Services for Dashboard and App Developers

FrontDesk Installation And Configuration

Swiss Safe Storage Online Backup MS Exchange Mail Level Backup

Database Maintenance Guide

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Transcription:

Technical Script AIST3410 Database Management systems p 1 There are times when a SQL Server database needs to be preserved or restored outside of the database engine. In real life this occurs when we want to move a database or archive a database before deleting it. When using a VM for class on campus computers, we need to preserve a database copy outside the VM to restore when we begin a fresh VM (this doesn t happen if you ported the VM to your own computer since when you restart the VM in that case, you are picking up where you left off). SQL Server Management Studio provides a wizard to preserve an entire data base as a script. So you simply create the script, save the script outside the VM, and exit the VM. When you want to re install that database in another SQL Server instance, simply open and run the script. As a first step, be sure you have set up file sharing between your VM and the host computer. Use the VM menu and choose Settings Select the Options tab Shared Folders. Be sure the Always enabled radio button is selected and Map as a network drive is selected. Highlight the top folder and click the Properties button.

Technical Script AIST3410 Database Management systems p 2 Give the shared folder a name and browse to the host location where the share should save files. Click OK twice to get back to the VM. Preserving the Database In SQL Server Management Studio, right click on the database you want to preserve (it is pubs in the example), select Tasks Generate Scripts

Technical Script AIST3410 Database Management systems p 3 Click Next on the Wizard splash screen Be sure the Script Entire Database option is selected; click Next.

Technical Script AIST3410 Database Management systems p 4 You can save your script directly to a file but it can be more reassuring to see the script before saving it. So use Save scripts to a specific location and Save to a new query window but don t click Next yet click the Advanced button. To preserve the schema (i.e., database structure and any entered data), set the Types of data to script option in the General options group to schema and data. Then click Ok (to close options) and Next.

Technical Script AIST3410 Database Management systems p 5 Double check that you are ready to go by reviewing the summary; use Previous to go back and change things or use Next to create the script. Creating the script is non destructive it simply creates instructions so it is not a disaster if you find something was left out and have to re create the script. The wizard will do its work providing some feedback about what is going on. Click Finish when done.

Technical Script AIST3410 Database Management systems p 6 The script will be placed in the query window. You might look through it to build confidence it is complete (i.e., I would look at the end for data insert statements if my tables had data). With your focus in the script (i.e., click into the script area), use File Save or click the Save button. Put this script file where you can find it (e.g., on your ASU Z:\ drive by choosing the shared folders and double clicking the share name) and give it a name that will help you remember what database the script creates and when you created the script (the date is important since if you change the database and make another script you want to know the difference); PubsSep01.sql in the example.

Technical Script AIST3410 Database Management systems p 7 Restoring the Database First, be sure the script file created when preserving the database is available to the computer (e.g., the VM or other computer) where you want to restore a copy. This may mean setting up the VM share again or somehow copying the script. Use SQL Server Management Studio to connect to a SQL Server without your database (this will happen if you start a fresh VM on campus or in real life you might connect to a SQL Server instance that you are trying to move your database to). Use File Open File and find the database script. Press F5 or the Execute button and the script will run. Your database should be created within the SQL Server instance (you might need to right click on databases and choose refresh to see it).

Technical Script AIST3410 Database Management systems p 8 There are other ways to backup/restore or detach/attach databases in SQL Server. Making a script is the most portable approach and has a lot of merit because it causes the database engine to rebuild the database rather than simply accept a copy.