How to move a SQL database from one server to another



Similar documents
for Networks Installation Guide for the application on the server August 2014 (GUIDE 2) Lucid Exact Version 1.7-N and later

for Networks Installation Guide for the application on the server July 2014 (GUIDE 2) Lucid Rapid Version 6.05-N and later

for Networks Installation Guide for the application on a server September 2015 (GUIDE 2) Memory Booster version 1.3-N and later

TROUBLESHOOTING GUIDE

Moving the TRITON Reporting Databases

ecopy ShareScan 5.0 SQL installs guide

Installation Guide for Microsoft SQL Server 2008 R2 Express. October 2011 (GUIDE 1)

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

Moving the Web Security Log Database

These notes are for upgrading the Linko Version 9.3 MS Access database to a SQL Express 2008 R2, 64 bit installations:

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

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

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

for Networks Installation Guide for thin client package on workstations September 2015 (GUIDE 3) Version 1.3-N

FaxCore Ev5 Database Migration Guide :: Microsoft SQL 2008 Edition

FaxCore 2007 Database Migration Guide :: Microsoft SQL 2008 Edition

RSA Security Analytics

Training module 2 Installing VMware View

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

Installing LearningBay Enterprise Part 2

WhatsUp Gold v16.2 Database Migration and Management Guide

Migrating helpdesk to a new server

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

Video Administration Backup and Restore Procedures

vcenter Configuration Manager Backup and Disaster Recovery Guide VCM 5.3

LAE 5.1. Windows Server Installation Guide. Version 1.0

NetSupport DNA Configuration of Microsoft SQL Server Express

SOFTWARE INSTALLATION INSTRUCTIONS CLIENT/SERVER EDITION AND WEB COMPONENT VERSION 10

Installation & Maintenance Guide

Restoring Sage Data Sage 200

Symantec Backup Exec TM 11d for Windows Servers. Quick Installation Guide

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

WhatsUp Gold v16.1 Database Migration and Management Guide Learn how to migrate a WhatsUp Gold database from Microsoft SQL Server 2008 R2 Express

Click Studios. Passwordstate. Upgrade Instructions to V7 from V5.xx

QUANTIFY INSTALLATION GUIDE

Symantec Backup Exec 12.5 for Windows Servers. Quick Installation Guide

Connecticut Hazardous Waste Manifests Database

Migrating MSDE to Microsoft SQL 2008 R2 Express

Aradial Installation Guide

Table of Contents SQL Server Option

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

How to Backup and FTP your SQL database using E2.

Setting up an MS SQL Server for IGSS

Issue Tracking Anywhere Installation Guide

Moving/Restoring the StarShip SQL database

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

MS SQL Server Database Management

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Microsoft Corporation. Project Server 2010 Installation Guide

Database Maintenance Guide

Version 4.61 or Later. Copyright 2013 Interactive Financial Solutions, Inc. All Rights Reserved. ProviderPro Network Administration Guide.

TM Online Storage: StorageSync

Setup guide. TELUS AD Sync

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

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.4.1

Sage Intelligence Financial Reporting for Sage ERP X3 Version 6.5 Installation Guide

Implementing Microsoft SQL Server 2008 Exercise Guide. Database by Design

Exercise Safe Commands and Audit Trail

PRIME Installation Guide

DBMoto 6.5 Setup Guide for SQL Server Transactional Replications

Microsoft SQL Server Express 2005 Install Guide

2. Unzip the file using a program that supports long filenames, such as WinZip. Do not use DOS.

NetSupport DNA Configuration of Microsoft SQL Server Express

Installing SQL Express. For CribMaster 9.2 and Later

EventSentry Overview. Part I Introduction 1 Part II Setting up SQL 2008 R2 Express 2. Part III Setting up IIS 9. Part IV Installing EventSentry 11

Zanibal Plug-in For Microsoft Outlook Installation & User Guide Version 1.1

O Reilly Media, Inc. 3/2/2007

WhatsUp Gold v16.3 Installation and Configuration Guide

Desktop Deployment Guide ARGUS Enterprise /29/2015 ARGUS Software An Altus Group Company

InformationNOW SQL 2008 Database Backup and Restoration

Portions of this product were created using LEADTOOLS LEAD Technologies, Inc. ALL RIGHTS RESERVED.

Polar Help Desk Installation Guide

SolarWinds Migrating SolarWinds NPM Technical Reference

SplendidCRM Deployment Guide

Crystal Reports Installation Guide

4cast Server Specification and Installation

Perceptive Intelligent Capture. Product Migration Guide. with Supervised Learning. Version 5.5 SP3

IIS, FTP Server and Windows

Before you may use any database in Limnor, you need to create a database connection for it. Select Project menu, select Databases:

Installation Guide: Delta Module Manager Launcher

Backup / migration of a Coffalyser.Net database

Using Internet or Windows Explorer to Upload Your Site

2.3 - Installing the moveon management module - SQL version

Installing RMFT on an MS Cluster

Alteryx Predictive Analytics for Oracle R

Bosch ReadykeyPRO Unlimited Installation Guide, product version 6.5. This guide is item number DOC , revision 2.029, May 2012.

Ingenious Testcraft Technical Documentation Installation Guide

Upgrade ProTracker Advantage Access database to a SQL database

DevInfo 7 Web Installer Guide

VMware vcenter Configuration Manager Backup and Disaster Recovery Guide vcenter Configuration Manager 5.7

Server Installation, Administration and Integration Guide

WhatsUp Gold v16.1 Installation and Configuration Guide

GoDaddy (CentriqHosting): Data driven Web Application Deployment

CS WinOMS Practice Management Software Server Migration Help Guide

HOW TO DEPLOY AN EJB APLICATION IN WEBLOGIC SERVER 11GR1

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

SpectraPro. SLQ Server databases

Enterprise Data Integration (EDI)

VERITAS Backup Exec TM 10.0 for Windows Servers

Transcription:

How to move a SQL database from one server to another Guide is applicable to these products: * Lucid CoPS, Lucid Rapid, LASS 8-11, LASS 11-15, LADS Plus and Lucid Ability (v6.0x-n) * Lucid Exact v1.xx-n * Memory Booster v1.2x-n * Comprehension Booster v1.3x-n) Before you begin: Ensure that you at least file access to your old SQL server instance. Ensure you have set up your new SQL Server instance along with SQL Server Management Studio, which you will need to use later. Make a note of the two database files you ll be using see Appendix 1 in this guide. A quick summary of the steps required: 1. Locate old database on old server 2. Copy and then attach database to new server 3. Recreate the Account and Login using a script 4. Recreate the connection string so the software can find the database Page 1 of 10

1) Find the database to migrate First, find where the database files from the old server are located. Find the files in two ways: (A) search on the old server for a specific file e.g. Lucid.mdf or LADS.mdf. (B) Launch SQL Server Management Studio on the old server and connect to the SQL Server instance where the database is. Right mouse click on the root of the Object Explorer, select Properties and then Database Settings to view the default location of the database files (see figure 1). Figure 1 finding the destination folder for databases The orange arrow (above) shows the location of the database files. Page 2 of 10

2) Copy the database and then Attach it. Launch SQL Server Management Studio and connect to the new SQL Server instance. Find where the database files should be put on the new server by employing the same technique as in Step 1. Manually copy the two database files into the folder, making sure nobody is using the database on your network before you do so. You may be prevented from copying the files if so you can stop the SQL Server service temporarily (right mouse click on the SQL Server instance on the root of Object Explorer in SQL Server Management Studio and from the menu select Stop. To restart the service, select Start. Now you need to attach the new database. Run Management Studio and right mouse click over the Databases node. Select Attach. Select Add and choose the mdf file you need, in this example it is Lucid.mdf * (see Figure 2). Select OK. Figure 2 choosing the database to Attach * Check which file you need by referring to Appendix 1. Page 3 of 10

3. Recreate the Lucid Account and Login using a script. A script is provided to recreate both the Account and Login used by the Lucid software. The script also adds permissions to the database. The script is shown in full in Appendix 2 at the end of this document. You can also download it from a web-link below: www.lucid-research.com/downloads/misc/lucid_sql_account_rebuilder_scripts.zip Only copy the script that services your product or range of products - there are 5 scripts all lumped together but separated by comments. To run the script, choose New Query in SQL Server Management Studio. Paste the script into the window on the right of the screen. Choose Execute from the toolbar. That s it. 4. Recreate the connection string file used by the Lucid software. The connection string is an encrypted file which tells the software where the database is and the credentials it needs to attach to it. Below is an example of a connection string used in SQL Server: Driver={SQL Server Native Client 10.0};Server=SCH03SERVER\MyInstance;Database=SCHOOLDATA;Uid=SchoolUser;Pwd=x6Mx37UaQ; In Lucid s networked products, the connection string is stored encrypted in a small text file called either server_config_2.dat or server_configuration.dat, depending on how old your software is. Find this file, which is in the folder \Data\ off the application folder, for example: C:\Program Files\LucidResearch\LASS 11-15 Network\Data\ Delete this file if both files are there delete them both. Now run the Admin module of the Lucid product; it will detect that the connection string file is missing and will launch the tool which prompts you to recreate it. See Appendix 3 for more help with using the database tool: Page 4 of 10

APPENDIX 1 Names of database files used by different Lucid Products Title LASS 8-11, LASS 11-15, Lucid Rapid, Lucid CoPS and Lucid Ability Filenames Lucid.mdf Lucid_log.ldf LADS and LADS Plus Lucid Exact Comprehension Booster (formerly Reading Booster) Memory Booster LADS.mdf LADS_log.ldf EXACT.mdf EXACT_log.ldf reading_booster.mdf reading_booster_log.ldf memory_booster.mdf memory_booster_log.ldf Note: SQL databases are two parts, with the main file (.mdf) and the transaction log file (.ldf). These must always be together in the same folder. Page 5 of 10

APPENDIX 2 Scripts to rebuild Lucid product s Account and Login after you ve attached the migrated database. Only execute the script you need for your Lucid product, which are number 1 to 5 on the pages which follow. /****** This document contains several separate SQL scripts which should be run in SQL Server Management Studio as a 'New Query'.***********/ /****** The scripts perform actions on databases used by Lucid products, such as rebuilding a Login which has been manually deleted ***********/ /****** as part of a database migration (in other words, moving a database to a different SQL Server). To use the script copy the lines *************/ /****** between the comments (like this line) and paste them into a 'New Query' window in SQL Server Management Studio. ***********************/ /****** Then click on '!Execute' to run the query. ******************************************************************************************************** ******/ /****** If the query is successful you will the line 'Command(s) completed successfully.' in the log below the query window. ***********************/ /****** If you see any lines in red they will be errors and the query will not have been completed successfully ****************************************/ /****** IMPORTANT! Please change the PASSWORD entry between the single quotes (e.g. PASSWORD=N'xxxxxx') if you are not using the **/ /****** default password shown within the scripts **********/ /***** Script 1 for LUCID database only **************************************************************************/ /***** This script can be used for all these Lucid networked products: *******************************************/ /***** Lucid CoPS, Lucid Rapid, LASS 8-11 (or LASS Junior), LASS 11-15 (or LASS Secondary). **********************/ /******************************************************************************************************* **********/ use [lucid] DROP LOGIN [LucidUser] CREATE LOGIN [LucidUser] WITH PASSWORD=N'ZX_123_abZ', DEFAULT_DATABASE=[Lucid], DEFAULT_LANGUAGE=[British], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON ALTER USER [LucidUser] WITH LOGIN=LucidUser EXEC sp_addrolemember N'db_owner', N'LucidUser' EXEC sp_addrolemember N'db_datareader', N'LucidUser' EXEC sp_addrolemember N'db_datawriter', N'LucidUser' Page 6 of 10

/***** Script 2 for LADS database only ******************************************************************************************/ /***** This script can be used for both LADS and LADS Plus **********************************************************************/ /******************************************************************************************************* *************************/ USE [LADS] DROP LOGIN [LADSUser] CREATE LOGIN [LADSUser] WITH PASSWORD=N'ZX_123_abZ', DEFAULT_DATABASE=[LADS], DEFAULT_LANGUAGE=[British], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON ALTER USER [LADSUser] WITH LOGIN=LADSUser EXEC sp_addrolemember N'db_owner', N'LADSUser' EXEC sp_addrolemember N'db_datareader', N'LADSUser' EXEC sp_addrolemember N'db_datawriter', N'LADSUser' /***** Script 3 for EXACT database only ****************************/ /***** This script can be used with Lucid Exact ********************/ /*******************************************************************/ USE [EXACT] DROP LOGIN [ExactUser] CREATE LOGIN [ExactUser] WITH PASSWORD=N'ZX_123_abZ', DEFAULT_DATABASE=[Exact], DEFAULT_LANGUAGE=[British], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON ALTER USER [ExactUser] WITH LOGIN=ExactUser EXEC sp_addrolemember N'db_owner', N'ExactUser' EXEC sp_addrolemember N'db_datareader', N'ExactUser' EXEC sp_addrolemember N'db_datawriter', N'ExactUser' Page 7 of 10

/***** Script 4 for Comprehension Booster *********************************************/ /***** This script can be used with Comprehension Booster *****************************/ /**************************************************************************************/ USE [reading_booster] DROP LOGIN [reading_booster_user] CREATE LOGIN [reading_booster_user] WITH PASSWORD=N'ZX_123_abZ', DEFAULT_DATABASE=[reading_booster], DEFAULT_LANGUAGE=[British], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON ALTER USER [reading_booster_user] WITH LOGIN=reading_booster_user EXEC sp_addrolemember N'db_owner', N'reading_booster_user' EXEC sp_addrolemember N'db_datareader', N'reading_booster_user' EXEC sp_addrolemember N'db_datawriter', N'reading_booster_user' /***** Script 5 for Memory Booster, whose database is called memory_booster ***********/ /***** This script can be used with Memory Booster ************************************/ /**************************************************************************************/ USE [memory_booster] DROP LOGIN [MemoryBoosterUser] CREATE LOGIN [MemoryBoosterUser] WITH PASSWORD=N'ZX_123_abZ', DEFAULT_DATABASE=[memory_booster], DEFAULT_LANGUAGE=[British], CHECK_EXPIRATION=OFF, CHECK_POLICY=ON ALTER USER [MemoryBoosterUser] WITH LOGIN=MemoryBoosterUser EXEC sp_addrolemember N'db_owner', N'MemoryBoosterUser' EXEC sp_addrolemember N'db_datareader', N'MemoryBoosterUser' EXEC sp_addrolemember N'db_datawriter', N'MemoryBoosterUser' /**************************************** END OF SCRIPTS **********************************************/ Page 8 of 10

APPENDIX 3 Using the Database Installer Tool to recreate the connection string file Begin by launching the tool which can be found in the \Data\ folder off the application folder. Lucid.Applications.DatabaseInstaller.exe After launching this exe file you will see the selections panel below. You need to choose the SQL Server Name (including instance name after the backslash if appropriate) and the ODBC driver. If using SQL Server 2005 choose the driver: SQL Native Client If using SQL Server 2008 choose the driver: SQL Server Native Client 10.0 If using SQL Server 2012 choose the driver: SQL Server Native Client 11.0 If you wish to use Windows Authentication for SQL Server, choose that option and then click on Install. Page 9 of 10

If you wish to use SQL Server (Mixed Mode) Authentication you need to enter the sa administrator account password. Then click Install to proceed. Any feedback (or possible errors) during installation will be shown in the scrollable text window. If the database has been installed already, the tool will detect this and leave it alone, simply creating the connection string file if necessary. Click Finish to exit the tool. If you think you may have incorrectly configured the Database Installer Tool, for instance, you get long error messages when running the Lucid software, you can start again by manually deleting the file server_configuration.dat in the folder called \Data off the application folder. This file contains an encrypted connection string used by the software to connect to the Lucid database. Then run your Lucid application again and this will launch the database tool again. Page 10 of 10