This document explains how to make a child copy of a master SQL Server database for disconnected use on a tablet PC.



Similar documents
Arctic Network SQL Server Data Analysis Using Microsoft Access

Backup / migration of a Coffalyser.Net database

Print Audit 6 - How to Move Print Audit 6 and a SQL Server 2005 Express Database to a New Server

1. CONFIGURING REMOTE ACCESS TO SQL SERVER EXPRESS

Moving a Romexis Database to an Existing SQL Instance

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

SELF SERVICE RESET PASSWORD MANAGEMENT BACKUP GUIDE

Getting Started with ODM

InformationNOW SQL 2005 Database Backup and Restoration

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

Moving the Web Security Log Database

MONAHRQ Installation Permissions Guide. Version 2.0.4

GO!NotifyLink. Database Maintenance. GO!NotifyLink Database Maintenance 1

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

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

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

How to Backup and FTP your SQL database using E2.

Restoring Sage Data Sage 200

InformationNOW SQL 2008 Database Backup and Restoration

Moving the TRITON Reporting Databases

How to protect, restore and recover SQL 2005 and SQL 2008 Databases

Moving a CIMPLICITY SQL Database using Detach/Attach Proficy HMI/SCADA CIMPLICITY

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

Backing Up CNG SAFE Version 6.0

Support Document: Microsoft SQL Server - LiveVault 7.6X

Configuring Your Firewall for Client Access in Professional Edition

Print Manager Plus 2010 How to Migrate your Database to a New SQL or Print Server

Click to begin. Maitre'D Full System Backup & Restore

SUMMARY Moderate-High: Requires Visual Basic For Applications (VBA) skills, network file services skills and interoperability skills.

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

TECHNICAL NOTE. The following information is provided as a service to our users, customers, and distributors.

Migrating MSDE to Microsoft SQL 2008 R2 Express

SQL Server 2005 Advanced settings

Diver-Office Backup and Restore the Database

CA3000 Database backup procedure

Implementing Unicenter Desktop and Server Management (DSM) r11.1 with Microsoft SQL Server Clusters

Microsoft SQLServer Restore / Redirected Restore Procedure

Immotec Systems, Inc. SQL Server 2005 Installation Document

Installing Cobra 4.7

Updating KP Learner Manager Enterprise X On Your Server

How To Run Eve 5 On A Pc Or Mac Or Ipad (For Pc Or Ipa) On A Network (For Mac) On Your Computer Or Ipro (For Ipro) On An Ipro Or Ipo (For Windows)

Installing LearningBay Enterprise Part 2

Juris Installation / Upgrade Guide

ArcGIS 9. Installation Guide: Workgroup for Microsoft SQL Server Express

TestElite - Troubleshooting

FaxCore 2007 Database Migration Guide :: Microsoft SQL 2008 Edition

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

Protecting SQL Server Databases Software Pursuits, Inc.

GETTING STARTED WITH SQL SERVER

Table of Contents. RFMS SQL Backup

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Error: "Object reference not set to an instance of an object" When Opening Any Database

Transferring AIS to a different computer

FaxCore Ev5 Database Migration Guide :: Microsoft SQL 2008 Edition

ONLINE BACKUP MANAGER MS EXCHANGE MAIL LEVEL BACKUP

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

Rentavault Online Backup. MS Exchange Mail Level Backup

INSTALLING SQL SERVER 2012 EXPRESS WITH ADVANCED SERVICES FOR REDHORSE CRM

VIP Protection Suite. Quick-start guide

Installing SQL Express. For CribMaster 9.2 and Later

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

Cisco VPN Client Installation

FieldIT Limited FieldIT CRM. Installation Manual v1.3.i3 (Enterprise Install)

1.0 Doors.Net Database Backup Microsoft SQL Server 2005 Studio Express

Databoks Remote Backup. MS Exchange Mail Level Backup

INSTALLATION INSTRUCTIONS FOR UKSSOGATEWAY

Project management - integrated into Outlook

FaxCore 2007 Application-Database Backup & Restore Guide :: Microsoft SQL 2005 Edition

Solcon Online Backup. MS Exchange Mail Level Backup

Scala InfoChannel Content Manager 5 Backup and Restore Instructions

STIDistrict SQL 2000 Database Management Plans

Database Back-Up and Restore

SAS 9.3 Foundation for Microsoft Windows

Video Administration Backup and Restore Procedures

educ Office Remove & create new Outlook profile

Moving SQL Servers. Document version 3.2 Published December 2010

Tips for Wireless VPN

Swiss Safe Storage Online Backup MS Exchange Mail Level Backup

WHITE PAPER: ENTERPRISE SOLUTIONS. Symantec Backup Exec Continuous Protection Server Continuous Protection for Microsoft SQL Server Databases

TM Online Storage: StorageSync

Velocity Database Migration Guide

Xactimate v.27 Network Installation

Installation Guide - Client. Rev 1.5.0

BSDI Advanced Fitness & Wellness Software

How To Install A New Database On A 2008 R2 System With A New Version Of Aql Server 2008 R 2 On A Windows Xp Server 2008 (Windows) R2 (Windows Xp) (Windows 8) (Powerpoint) (Mysql

Migrating FMS to SQL SIMS 2009 Autumn Main Release Onwards

Moving/Restoring the StarShip SQL database

Sitecore Ecommerce Enterprise Edition Installation Guide Installation guide for administrators and developers

SonicWALL CDP Local Archiving

Allworx OfficeSafe Operations Guide Release 6.0

Setup guide. TELUS AD Sync

AVALANCHE MC 5.3 AND DATABASE MANAGEMENT SYSTEMS

How to Fix Time Matters Active Practice LLC

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

Microsoft SQL Server 2005 How to Create and Restore Database (GRANTH3) Manually

Dream Report Version 4.5

Transcription:

Arctic Network Arctic Network Data Management Standard Operating Procedure Inventory & Monitoring Program U.S. Department of the Interior Data Management Standard Operating Procedure NPS/ARCN/DMSOP-2009-05 Copying and Attaching a SQL Server Database to a Tablet PC Summary This document explains how to make a child copy of a master SQL Server database for disconnected use on a tablet PC. Contents Summary... 1 Contents... 1 Introduction... 1 Copying A SQL Server Database File From a Master Server To A Child Server On A Field Computer... 1 Attaching The Database File To The Field Computer s SQL Server... 2 Starting and Stopping a SQL Server... 3 About This Standard Operating Procedure... 4 Revision History... 5 Introduction Arctic Network stores a substantial amount of data on a Microsoft SQL Server. Occasionally it is necessary to copy a database from the master server onto a field computer. This SOP explains how to detach a master database from the SQL Server and attach it to a tablet or laptop PC. Explanation of SQL Server Database Files SQL Server databases exist as files (.mdf and.ldf) in a certain directory, usually C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data. When you attach a database to a SQL Server what you are doing is showing the SQL Server where your database files exist. Understanding this fact makes it easier to understand what you are doing when you are attaching a database to a SQL Server. Copying A SQL Server Database File From a Master Server To A Child Server On A Field Computer 1. Open a file explorer and navigate to the SQL Server data directory (You need server adiministrator privileges to do this; contact your friendly local IT specialist, if needed). This directory may be in a custom location but the usual location is Page 1 of 5

C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data 2. Each.mdf file is named according to the database name you see in management studio. Select both the.mdf file and the.ldf file and copy them to the corresponding SQL Server data directory on your field computer. Figure 1 shows an example of the two parts of a SQL Server database file. Figure 1. Example of SQL Server database files. Copy both the.mdf and the.ldf file to the corresponding folder on your field computer. Attaching The Database File To The Field Computer s SQL Server Note: If the database you want to attach already exists on the SQL Server (i.e., if you are attaching an earlier version of the same database or a backup copy, you may need to stop the SQL Server to break all data connections before attaching the new database. This is covered in it s own section below). Note: If you are attaching a different copy of the same database be sure not to overwrite the existing.mdf and.ldf files. Archive them elsewhere. To attach a database to a SQL Server 1. Open the field computer s SQL Server Management Studio. 2. Connect to the local SQL Server instance. 3. Right click the Databases node Page 2 of 5

4. Select Attach 5. Click Add 6. Navigate to the.mdf file you would like to attach. 7. Click OK. The SQL Server will attach the database. Starting and Stopping a SQL Server Some database maintenance operations require the server to be stopped in order to sever existing database connections. Existing database connections put a lock on the database files making it impossible to overwrite database files. This is mostly a problem if you want to attach a different copy of an existing database (i.e., an earlier, backed up copy of an existing database). You will not likely need to stop the SQL Server just to attach a brand new database. Note: Stopping a SQL Server is not a big deal on a field computer where there is likely only one connection, but weigh the consequences before stopping any SQL Server in a production environment that may have multiple data connections. Note: You must have administrative rights on the computer. All ARCN field computer accounts have these rights. To Stop and Start a SQL Server: 1. Click the Start menu and navigate to Administrative Tools (the location of this link varies from computer to computer. It may also exist in the computer s Control Panel. Page 3 of 5

2. From Administrative Tools select Services 3. Navigate to SQL Server (SQLEXPRESS) and right click 4. Select Stop 5. Perform your SQL Server maintenance tasks 6. Restart the SQL Server by following the same directions except choose Start in Step 4. About This Standard Operating Procedure Version: 1.0 Status: Final Publication Date: July 21, 2009 Author(s): Scott D. Miller, Data Manager, Arctic Network Inventory & Monitoring Program. Abstract: This document explains how to make a child copy of a master SQL Server database for disconnected use on a tablet PC. Suggested Citation: NPS-ARCN (2009). Copying a SQL Server Database to a Tablet PC Version 1.0, Arctic Network-Inventory and Monitoring Program, National Park Service. Fairbanks, Alaska. Page 4 of 5

Revision History Version Version Date Revised By Changes 1.0 2009-05-07 S. Miller Original This table reflects changes to this document. Version numbers will be incremented by one (e.g., Version 1.3 to Version 2.0) each time there is a significant change in the process and/or changes are made that affect the interpretation of the data. Version numbers will be incremented after the decimal (e.g., Version 1.6 to Version 1.7 1.10.1.21) when there are changes to grammar, spelling, or formatting, or minor modifications in the process that do not affect the interpretation of data. Page 5 of 5