Tech Note 918 - Moving Historian Server Custom Tables
Tech Note 918 - Moving Historian Server Custom Tables
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#: 002731
Created: Jamuary 2013
Introduction
This Tech Note explains moving custom tables from one Historian Server to another.
Custom tables are tables you create to store information beyond the built-in tables already included in the Historian Server's Runtime
database. These custom tables are not automatically migrated when Historian software is upgraded, it is necessary to migrate them
manually.
This Tech Note uses Historian1 (existing Historian Server) and Historian2 (Target/New Historian Server) for reference and context.
Application Versions
Wonderware Historian 10.0 and later
Procedure
Create a backup for the current Runtime database on the target server
2. Click Next.
6. Select the Custom tables for which you want to generate script and click Next.
7. Select the location at which to save script file and click Save, then Next (Figure 8 below).
9. After the Script Generation operation finishes (Figure 10-11 below), close the SQL Server Management Studio.
1. On the Historian 1 (Existing) machine, Open SQL Server Management Studio and connect to it.
2. In the Connect to Server dialog box, specify the name of the appropriate SQL Server, and then click Connect.
3. In SQL Server Management Studio, double-click Server Objects, right-click Linked Servers, then click New Linked Server.
4. In the New Linked Server dialog box, type the Network name of the SQL Server you want to link to.
Note: This procedure often refers to the server you are linking to as the remote server. This is for convenience only, to indicate the
relationship of the linked (remote) server to the local server. Do not confuse this usage with the obsolete remote server functionality in
SQL Server.
7. Click the Be made using this security context option, then provide the Admin level Remote Login and Password.
12. Set the RPC and RPC Out parameters to True, then click OK.
Transfer all Records from the Old Tables to the New Tables
Now you have a Historian Server that contains custom tables, and you have tables in the target Historian Server with the same tables
You have a linked server relationship between the Servers, and you are now ready to copy data from the original tables to the new
tables.
Use the following SQL statement to copy the data (provide your actual table names).
M. Salah
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.
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.