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

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

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 782 Installing Remote Desktop Services on Windows 2008 Server R2 for Wonderware Products

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

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

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

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

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

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

Tech Note 868 Troubleshooting Wonderware Software Resource Issues with Performance Monitor

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

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

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

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

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

How To Write A Summary On A Historyorian Server

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

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

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

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

Introduction. Back Up the Runtime Database. Application Versions

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

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

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

Enabling Cross-Machine Distributed Transactions (via MSDTC)

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

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.

Industrial Application Server Redundancy: Troubleshooting Guidelines

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

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

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

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 813 Troubleshooting Wonderware Information Server (WIS) Part Four: Client License Release

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

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

Part I: Setting up Bristol Babcock's OPC Server

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

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

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

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

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

How to Configure a Secure Connection to Microsoft SQL Server

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

Security Settings for Wonderware Products

Using Network Application Development (NAD) with InTouch

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

Connecting to Manage Your MS SQL Database

Moving/Restoring the StarShip SQL database

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

Implementing the system using these guidelines should improve your system performance for a large database while your database grows in size.

Instructions. Introduction

Cloud Attached Storage

Microsoft Business Contact Manager Version 2.0 New to Product. Module 4: Importing and Exporting Data

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

How to schedule SQL Maintenance Plan

Video Administration Backup and Restore Procedures

Feith Rules Engine Version 8.1 Install Guide

BillQuick Installation Guide for Microsoft SQL Server 2005 Express Edition

INTRODUCTION: SQL SERVER ACCESS / LOGIN ACCOUNT INFO:

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

Sage HRMS 2014 Sage Employee Self Service Tech Installation Guide for Windows 2003, 2008, and October 2013

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 213 Finding Memory Leaks in Windows 95/98/98SE Using System Monitor

Novar Database Mail Setup Guidelines

Unity Application Suite SQL Server Database Integration

SQL Server Integration Services with Oracle Database 10g

InformationNOW SQL 2005 Database Backup and Restoration

Microsoft Dynamics GP Audit Trails

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

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

InformationNOW SQL 2008 Database Backup and Restoration

Wonderware Historian Client Installation Guide. Invensys Systems, Inc.

Dell Spotlight on Active Directory Deployment Guide

Migrating helpdesk to a new server

OLAP Cube Manual deployment and Error resolution with limited licenses and Config keys

Introduction to Version Control in

Connecting to SQL server

How to Use PIPS Access to/from SQL Database Utility Program. By PIPSUS Support Team Dr. Chouikha

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

SELF SERVICE RESET PASSWORD MANAGEMENT DATABASE REPLICATION GUIDE

MCAPS 3000 DISASTER RECOVERY GUIDE

Keystone Enterprise Backup

Sophos Mobile Control Installation guide

Installation Guide. Novell Storage Manager for Active Directory. Novell Storage Manager for Active Directory Installation Guide

Symantec Backup Exec System Recovery Exchange Retrieve Option User's Guide

Tech Note 128 Configuring InBatch For Standalone PCs With SQL Server and IndustrialSQL Server

User Guide. DocAve Lotus Notes Migrator for Microsoft Exchange 1.1. Using the DocAve Notes Migrator for Exchange to Perform a Basic Migration

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

To install Multifront you need to have familiarity with Internet Information Services (IIS), Microsoft.NET Framework and SQL Server 2008.

HELP DOCUMENTATION E-SSOM BACKUP AND RESTORE GUIDE

MS SQL Server Database Management

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. https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 1/15

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). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 2/15

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). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 3/15

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. https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 4/15

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). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 5/15

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. https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 6/15

FIGURE 7: CHANGE TYPE FROM NVARCHAR TO IMAGE 8. Click Next to complete the import process (Figure 8 below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 7/15

FIGURE 8: CLICK NEXT TO COMPLETE 9. Click Execute Immediately, then click Next (Figure 9 below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 8/15

FIGURE 9: EXECUTE IMMEDIATELY 10. Click Finish (Figure 10 below). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 9/15

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). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 10/15

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). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 11/15

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. https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 12/15

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). https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 13/15

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 https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 14/15

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. Click the following icon to view this file in.pdf format: 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. https://wdnresource.wonderware.com/support/kbcd/html/1/t002728.htm 15/15