How To Migrate Qi Analyst To A New Database On A Microsoft Access 7.2.2 (Windows) From A New Version Of Qi.Io To A Newer Version Of A New Qi 8.0 (Windows 7.3



Similar documents
Migrating QI 8.0 Admin and Process Databases from Microsoft Access to Microsoft SQL Server

Tech Note 743 Configuring Reporting Services 2008 Configuration for a New Host Name in Windows 2008 R2

Tech Note 847 Installing Wonderware Information Server (WIS) on the Windows Server Window 7 64 and 32-bit Operating System

Tech Note 920 Resolving Disabled ActiveFactory Reporting Website for Wonderware System Platform R2

Tech Note 868 Troubleshooting Wonderware Software Resource Issues with Performance Monitor

Introduction. Tech Note 884 Setting Up Historian Servers for Tier-2 Summary Replication

Introduction. Notes. Important Considerations. Application Versions. Assumptions. 8/22/13 Setting Up Historian Servers for Tier-2 Summary Replication

Introduction. Application Versions. Assumptions. Delete $$ExportTempFolders. Tech Note 930 Wonderware System Platform Clean-up Guide

Introduction. Application Versions. Installing Virtual SMTP Server. Tech Note 692 Using Virtual SMTP Server for SCADAlarm Notifications

How To Write A Summary On A Historyorian Server

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

Tech Note 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

Tech Note 1042 Solving Historian Memory Issue with SQL Server MemToLeave Configuration

Tech Note 663 HMI Reports: Creating Alarm Database (WWALMDB) Reports

Instead, use the following steps to update system metadata that is stored in sys.servers and reported by the system function

This Tech Note provides step-by-step procedures to install Microsoft SQL Server 2012 on a 32- or 64-bit Operating System.

Tech Note 338 How to Change the ActiveFactory Reporting Website Default Install Location

Tech Note 1010 SQL Server Authentication and ArchestrA Network Account Restrictions When Installing Wonderware Historian

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

This tech note will explain how to use the following parameters in Configurator General Parameters.

Tech Note 551 Configuring SQLMail or Database Mail for the Historian Event

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

8/22/13 Configuring Windows SharePoint Services for PEM v1.0 to Work with SuiteVoyager v2.6

Tech Note 1035 Moving the Historian Runtime Database to Another Machine Using SQL Server 2012

Tech Note 882 Configuring Time Synchronization for Historian Server Using Net Time and Windows Task Scheduler

Introduction. Back Up the Runtime Database. Application Versions

Note: This Tech Note was formerly titled Installing Microsoft SQL Server 2008 for Wonderware Historian v10.0.

Industrial Application Server Redundancy: Troubleshooting Guidelines

Tech Note 751 Installing InBatch Report Contents for Wonderware Information Server (WIS)

Enabling Cross-Machine Distributed Transactions (via MSDTC)

This Tech Note provides detailed guidelines and options for defragmenting and maintaining your production databases.

This Tech Note describes working with Microsoft Reporting Services in order to publish InBatch Reports to Wonderware Information Server.

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Introduction. Symbol Script Timeout Setting. Sample MES Custom Code in Symbol Script. Application Versions. Sample Code

Tech Note 813 Troubleshooting Wonderware Information Server (WIS) Part Four: Client License Release

1. Under Application Objects, open the $Tank object and then open the $TankDisplay as shown in Figure 1 (below).

Communication to End Device Going In and Out of Slow Poll Mode

Part I: Setting up Bristol Babcock's OPC Server

Introduction. Configuration: Entity and OCO Modeling. Application Version: OCO General Configuration

Note: Not all messages in the log are indicative of a problem. Contact Technical Support if questions arise.

Introduction. Issues. Symptoms. Application Versions. Case 1: Deploy an ArchestrA Object - UDO4DevUsers_001_001 - Has Error Messages

Tech Note 912 Using Alternate TCP Port Numbers with Modbus Ethernet DAServer

Tech Note 957 Creating Custom Password Entry on Intermec-Supported Handhelds

Tech Note 400 Configuring Remote Connections for Windows 2000/2003/XP

To allow SQL Server Agent to trigger when a report is executed, we need to provide a set of report group types.

Introduction. Application Versions. Compatibility and System Requirements. Firewall and DCOM Settings

Tech Note 905 Troubleshooting Wonderware Information Server (WIS) Part Six: ArchestrA Graphics No Live-Data

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Table of Contents SQL Server Option

Using Network Application Development (NAD) with InTouch

Tech Note 612 Upgrading DLL Version Mismatches Between CBM Solution and System Platform

Connecting to Manage Your MS SQL Database

Moving/Restoring the StarShip SQL database

How to Configure a Secure Connection to Microsoft SQL Server

Security Settings for Wonderware Products

This Tech Note describes modem connections using DAServers and provides some guidelines on how to make the modem connection work.

Feith Rules Engine Version 8.1 Install Guide

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

All Tech Notes and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information.

Tech Note 652 Changing an ArchestrA Symbol's Custom Property Expression or Reference in Runtime

Novar Database Mail Setup Guidelines

Instructions. Introduction

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

Cloud Attached Storage

Video Administration Backup and Restore Procedures

InformationNOW SQL 2008 Database Backup and Restoration

How to schedule SQL Maintenance Plan

Wonderware Historian Client Installation Guide. Invensys Systems, Inc.

BillQuick Installation Guide for Microsoft SQL Server 2005 Express Edition

Symantec Enterprise Vault Technical Note. Administering the Monitoring database. Windows

Connecting to SQL server

SQL Server Integration Services with Oracle Database 10g

SQM. Maintaining Microsoft SQL for Broadcast Engineers. Training Course Outline

SELF SERVICE RESET PASSWORD MANAGEMENT DATABASE REPLICATION GUIDE

MCAPS 3000 DISASTER RECOVERY GUIDE

Microsoft Dynamics GP Audit Trails

Business Intelligence Tool Migration. Title: Domain: Client: Location:

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

MS SQL Server Database Management

8/22/13 Configuring the SST5136SD PCI Card Using the New SSTDHP IO Server V8.1 or the DASDHPlus Server

How To Set Up Chime For A Coworker On Windows (Windows) With A Windows 7 (Windows 7) On A Windows 8.1 (Windows 8) With An Ipad (Windows).Net (Windows Xp

How Wonderware Software Addresses the Top Challenges of the Municipal Water and Wastewater Business. Steve Garbrecht, Director of Product Marketing

MS SQL 2000 Server with CDR DICOM 3.5 and Recommended WAN Configuration

8/23/13 Configuring SIDirect DAServer to Communicate with S7 PLC Over TCP Connection

Moving the Web Security Log Database

Dell Spotlight on Active Directory Deployment Guide

InformationNOW SQL 2005 Database Backup and Restoration

G Data TechPaper #0257

SQL Express to SQL Server Database Migration Goliath Performance Monitor v11.5

Migrating MSDE to Microsoft SQL 2008 R2 Express

CRM to Exchange Synchronization

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

NTL Studio SQL Database Installation & Configuration

Contents. PAINLESS MULTI-DBMS STRATEGY For Magic e-developers. Contents Pines Boulevard, Suite 312 Pembroke Pines, Florida USA

Sophos Mobile Control Installation guide

Version 3. Installation Guide for SQL Server 2005 Express Edition. Copyright 2011 Teclink Development Ltd. All rights reserved.

SQL Server Replication Guide

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

Update and Installation Guide for Microsoft Management Reporter 2.0 Feature Pack 1

Lepide Exchange Recovery Manager

Transcription:

Tech Note 915 Migrating QI Analyst Databases from Access to SQL All Tech Notes, Tech Alerts and KBCD documents and software are provided "as is" without warranty of any kind. See the Terms of Use for more information. Topic#: 002728 Created: January 2013 Introduction This Tech Note discusses two topics associated with database migration. Migrating QI 8.0 admin and process databases from Microsoft Access to Microsoft SQL Server Migrating QI Admin and Process Databases from Microsoft Access to Microsoft SQL Server (.mdb and.qia - > SQL Server) provides efficiency benefits when you need to store large amounts of data and query that data from QI Analyst. Fixing the problem associated with the migration of QI Analyst 4.2 SQL database (previously converted from Microsoft Access) to QI Analyst 8.0 SQL database using the QI V4.2-V8.0 Migration Utility. Problems have been reported when migrating QI 4.2 SQL database to a QI 8.0 SQL database. An error is generated during migration and the utility doesn t proceed further. This is because the QI 4.2 SQL database was converted from the Access database. During that conversion, the data type of some columns in QI tables was automatically changed from Image to nvarchar by SQL server Data Transformation Services. This Tech Note explains how to fix that problem so that the QI V4.2-V8.0 Migration Utility will complete the migration. Assumptions You are familiar with QI Analyst and SQL Server You have Administrator rights on the server Application Versions QI Analyst 8.0 and later SQL server 2005 MS Access 2003, 2007 and 2010 Note: MS Access 2007 and SQL Server 2005 were used to capture the screen shots in this Tech Note. Migrating QI 8.0 Admin and Process Databases from Microsoft Access to Microsoft SQL Server

Let us assume your existing Microsoft Access QI admin database name is QIAdmin80.mdb and your Process database name is sampledb80.qia. Create Databases Using SQL Enterprise Manager 1. Open SQL Enterprise Manager. 2. Back up the Admin and Process databases. 3. Fix the data type of the Admin database to ensure a successful conversion. Do the following: Create a new SQL database for the QIA Admin database. In this example, it is called QI_Admin_New (Figure 1 below). Create a new SQL database for the QIA Process database. In this example, it is called QI_Process_New. FiGuRE 1: CREatinG NEW SQL DataBasE for QI Admin and PROcEss DB COnvERsiOn Convert the Admin Database Use Data Transformation Services (DTS) to import the data from QIAdmin80.mdb. For the conversion, your Data Source is your existing QI Access database and your Destination should always be the empty SQL database that you created.

1. In SQL Server Management Studio, right-click the QI_Admin_New database, and select Tasks/Import Data (Figure 2 below). FiGuRE 2: TasKs/ImpORt Data 2. Choose Microsoft Access as the Data Source provider and QIAdmin80.mdb as the Source database file name, then click Next (Figure 3 below).

FiGuRE 3: SElEct QIAdmin80.mdB as Data SOuRcE 3. Choose SQL Native Client as the Destination provider and QI_Admin_New as the destination Database, then click Next (Figure 4 below). You can also use Microsoft OLEDB provider for SQL Server as the provider.

FiGuRE 4: SElEct QI_Admin_nEW as DEstinatiOn DataBasE 4. Select Copy Data from one or more tables or views, and then click Next (Figure 5 below).

FiGuRE 5: COpY Data from OnE OR more tables OR views OptiOn 5. Select all the tables in the QIAdmin80.mdb access database (Figure 6 below).

FiGuRE 6: SElEct All QI TaBlEs During the import process, make the required data type changes (from nvarchar to Image) on the Properties column for each of the following QI tables. QI_DB QI_TEMPLATEPROP QI_WINDOWPROPS 6. Select the table and click Edit Mappings. 7. Change the Properties Source Type Column from nvarchar to Image (Figure 7 below). Repeat the same procedure for the remaining tables.

FiGuRE 7: CHanGE TYpE from nvarchar to image 8. Click Next to complete the import process (Figure 8 below).

FiGuRE 8: ClicK NEXt to COmplEtE 9. Click Execute Immediately, then click Next (Figure 9 below).

FiGuRE 9: EXEcutE ImmEdiatElY 10. Click Finish (Figure 10 below).

FiGuRE 10: FinisH the ImpORt 11. Make sure there are no error messages, and the Status column shows Success for all the Action items. Click Close (Figure 11 below).

FiGuRE 11: CHEcK ImpORt Status for ERRORs Convert the Process Database Use Data Transformation Services to Import Data from Sampledb80.qia to QI_Process_New. Change the existing.qia extension to.mdb. In this example, the Data Source is now sample80.mdb. Follow the same procedure as in the above section to convert your QI Process database to SQL Server database. Note the following exceptions: - From the import wizard, choose Microsoft Access as the Data Source provider and sampledb80.mdb as the Source database file name, then click Next (Figure 12 below).

Figure 12: select sampledb80.mdb as data source - Choose SQL Native Client as the Destination provider and QI_Process_New as the destination Database, then click Next. Alternatively, you can use Microsoft OLEDB provider for SQL Server as the provider. - During the import process, make the required data type changes (from nvarchar to Image) on the Properties column on each of the below QI tables. QI_ALARMFILTER QI_ALARMPROPS QI_DATATABLEPROP QI_DEASSISTPROPS QI_DICTFORMULA An example of one of the tables is shown in Figure 13 (below). Complete the import process.

FiGuRE 13: CHanGE the Data TYpE from nvarchar to image - Make sure there are no error messages, and the Status Column shows Success for all the Action items, and then click Close (Figure 14 below).

FiGuRE 14: CHEcK the ImpORt Status for ERRORs Use Tech Note 565 Connecting to Migrated QI Analyst Databases to point QI Controller/QI Workstation to the newly-converted SQL QI databases. This step is critical. If you do not do this, your QI Analyst application will continue pointing to the MS Access QI databases. Notes In our testing we have seen data type conversion problems if SQL Server 2008 is used. The recommendation is to use SQL 2005 for the conversion. If you must have your databases in SQL 2008, you can do the following: 1. Do the conversion using SQL 2005. 2. Then make a back up of those SQL 2005 QI databases. 3. Restore them on SQL 2008.

4. Then use TN 565. Fixing the Problem Associated with the Migration of QI Analyst 4.2 SQL Database (previously converted from Microsoft Access) to QI Analyst 8.0 SQL Database Using the QI V4.2-V8.0 Migration Utility The following error pops up when migrating a QI Analyst 4.2 SQL database (previously converted from Microsoft Access) to QI Analyst 8.0. FiGuRE 15: Invalid SOuRcE ERROR The error can be fixed by changing data type of a few QIA columns from nvarchar to image. This task must be done on both the QI 4.2 SQL Admin and SQL Process databases. The procedure is same as described in the Data Transformation sections (above) with the following exceptions. Let us assume your existing QI 4.2 SQL Admin database name is QI42Admin and the Process database name is QI42Process. 1. Create New databases in SQL Server. These will serve as the destination databases. 2. Change the column data type in Admin database tables. Note: Here the Source Provider should be selected as SQL Native Client and the source database should be QI42Admin. 3. Change the column data type in Process database tables. Note: Here the Source Provider is SQL Native Client and the source database should be QI42Process. K. Nourbakhsh and R. Herunde Tech Notes are published occasionally by Wonderware Technical Support. Publisher: Invensys Systems, Inc., 26561 Rancho Parkway South, Lake Forest, CA 92630. There is also technical information on our software products at Wonderware Technical Support. For technical support questions, send an e-mail to wwsupport@invensys.com. Back to top 2013 Invensys Systems, Inc. All rights reserved. No part of the material protected by this copyright may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying, recording, broadcasting, or by anyinformation storage and retrieval system, without permission in writing from Invensys Systems, Inc. Terms of Use.