Pinnacle Systems Interplay SQL Sync - 1.2 Installation Manual

Avid® Interplay™ SQL Sync
make manage move | media
Avid
®
Legal Notices
Product specifications are subject to change without notice and do not represent a commitment on the part of Avid Technology, Inc.
The software described in this document is furnished under a license agreement. You can obtain a copy of that license by visiting Avid's Web site at www.avid.com. The terms of that license are also available in the product in the same directory as the software. The software may not be reverse assembled and may be used or copied only in accordance with the terms of the license agreement. It is against the law to copy the software on any medium except as specifically allowed in the license agreement.
Avid products or portions thereof are protected by one or more of the following United States Patents: 4,970,663; 5,267,351; 5,309,528; 5,355,450; 5,396,594; 5,440,348; 5,467,288; 5,513,375; 5,528,310; 5,557,423; 5,577,190; 5,584,006; 5,627,765; 5,640,601; 5,644,364; 5,654,737; 5,715,018; 5,719,570; 5,724,605; 5,726,717; 5,729,673; 5,745,637; 5,752,029; 5,754,851; 5,799,150; 5,812,216; 5,828,678; 5,842,014; 5,852,435; 5,999,406; 6,038,573; 6,061,758; 6,141,007; 6,211,869; 6,532,043; 6,546,190; 6,596,031; 6,636,869; 6,747,705; 6,763,523; 6,766,357; 6,813,622; 6,847,373; 7,081,900; RE40,107; D352,278; D372,478; D373,778; D392,267; D392,268; D392,269; D395,291; D396,853; D398,912. Other patents are pending.
This document is protected under copyright law. An authorized licensee of Interplay Framework may reproduce this publication for the licensee’s own use in learning how to use the software. This document may not be reproduced or distributed, in whole or in part, for commercial purposes, such as selling copies of this document or providing support or educational services to others. This document is supplied as a guide for Interplay Framework. Reasonable care has been taken in preparing the information it contains. However, this document may contain omissions, technical inaccuracies, or typographical errors. Avid Technology, Inc. does not accept responsibility of any kind for customers’ losses due to the use of this document. Product specifications are subject to change without notice.
Copyright © 2008 Avid Technology, Inc. and its licensors. All rights reserved.
The following disclaimer is required by Sam Leffler and Silicon Graphics, Inc. for the use of their TIFF library:
Copyright © 1988–1997 Sam Leffler Copyright © 1991–1997 Silicon Graphics, Inc.
Permission to use, copy, modify, distribute, and sell this software [i.e., the TIFF library] and its documentation for any purpose is hereby granted without fee, provided that (i) the above copyright notices and this permission notice appear in all copies of the software and related documentation, and (ii) the names of Sam Leffler and Silicon Graphics may not be used in any advertising or publicity relating to the software without the specific, prior written permission of Sam Leffler and Silicon Graphics.
THE SOFTWARE IS PROVIDED “AS-IS” AND WITHOUT WARRANTY OF ANY KIND, EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
The following disclaimer is required by the Independent JPEG Group:
This software is based in part on the work of the Independent JPEG Group.
This Software may contain components licensed under the following conditions:
Copyright (c) 1989 The Regents of the University of California. All rights reserved.
Redistribution and use in source and binary forms are permitted provided that the above copyright notice and this paragraph are duplicated in all such forms and that any documentation, advertising materials, and other materials related to such distribution and use acknowledge that the software was developed by the University of California, Berkeley. The name of the University may not be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Copyright (C) 1989, 1991 by Jef Poskanzer.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty.
Copyright 1995, Trinity College Computing Center. Written by David Chappell.
2
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. This software is provided "as is" without express or implied warranty.
Copyright 1996 Daniel Dardailler.
Permission to use, copy, modify, distribute, and sell this software for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Daniel Dardailler not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Daniel Dardailler makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifications Copyright 1999 Matt Koss, under the same license as above.
Copyright (c) 1991 by AT&T.
Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software.
THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR AT&T MAKES ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
This product includes software developed by the University of California, Berkeley and its contributors.
The following disclaimer is required by Nexidia Inc.:
© 2006 Nexidia. All rights reserved.
Manufactured under license from the Georgia Tech Research Corporation, U.S.A. Patent Pending.
The following disclaimer is required by Paradigm Matrix:
Portions of this software licensed from Paradigm Matrix.
The following disclaimer is required by Ray Sauers Associates, Inc.:
“Install-It” is licensed from Ray Sauers Associates, Inc. End-User is prohibited from taking any action to derive a source code equivalent of “Install-It,” including by reverse assembly or reverse compilation, Ray Sauers Associates, Inc. shall in no event be liable for any damages resulting from reseller’s failure to perform reseller’s obligation; or any damages arising from use or operation of reseller’s products or the software; or any other damages, including but not limited to, incidental, direct, indirect, special or consequential Damages including lost profits, or damages resulting from loss of use or inability to use reseller’s products or the software for any reason including copyright or patent infringement, or lost data, even if Ray Sauers Associates has been advised, knew or should have known of the possibility of such damages.
The following disclaimer is required by Videomedia, Inc.:
“Videomedia, Inc. makes no warranties whatsoever, either express or implied, regarding this product, including warranties with respect to its merchantability or its fitness for any particular purpose.”
“This software contains V-LAN ver. 3.0 Command Protocols which communicate with V-LAN ver. 3.0 products developed by Videomedia, Inc. and V-LAN ver. 3.0 compatible products developed by third parties under license from Videomedia, Inc. Use of this software will allow “frame accurate” editing control of applicable videotape recorder decks, videodisc recorders/players and the like.”
The following disclaimer is required by Altura Software, Inc. for the use of its Mac2Win software and Sample Source Code:
©1993–1998 Altura Software, Inc.
The following disclaimer is required by 3Prong.com Inc.:
Certain waveform and vector monitoring capabilities are provided under a license from 3Prong.com Inc.
The following disclaimer is required by Interplay Entertainment Corp.:
The “Interplay” name is used with the permission of Interplay Entertainment Corp., which bears no responsibility for Avid products.
This product includes portions of the Alloy Look & Feel software from Incors GmbH.
3
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
© DevelopMentor
This product may include the JCifs library, for which the following notice applies:
JCifs © Copyright 2004, The JCIFS Project, is licensed under LGPL (http://jcifs.samba.org/). See the LGPL.txt file in the Third Party Software directory on the installation CD.
Avid Interplay contains components licensed from LavanTech. These components may only be used as part of and in connection with Avid Interplay.
Attn. Government User(s). Restricted Rights Legend
U.S. GOVERNMENT RESTRICTED RIGHTS. This Software and its documentation are “commercial computer software” or “commercial computer software documentation.” In the event that such Software or documentation is acquired by or on behalf of a unit or agency of the U.S. Government, all rights with respect to this Software and documentation are subject to the terms of the License Agreement, pursuant to FAR §12.212(a) and/or DFARS §227.7202-1(a), as applicable.
Trademarks
888 I/O, Adrenaline, AirPlay, AirSPACE, AirSPACE HD, AirSpeed, ALEX, Alexis, AniMatte, AudioSuite, AudioVision, AutoSync, Avid, Avid Advanced Response, Avid DNA, Avid DNxcel, Avid DNxHD, AVIDdrive, AVIDdrive Towers, Avid DS Assist Station, Avid ISIS, Avid Learning Excellerator, Avid Liquid, Avid Mojo, AvidNet, AvidNetwork, Avid Remote Response, AVIDstripe, Avid Unity, Avid Unity ISIS, Avid Xpress, AVoption, AVX, CamCutter, CaptureManager, ChromaCurve, ChromaWheel, Conectiv, CountDown, DAE, Dazzle, Deko, DekoCast, D-Fi, D-fx, DigiDelivery, Digidesign, Digidesign Audio Engine, Digidesign Intelligent Noise Reduction, DigiDrive, Digital Nonlinear Accelerator, DigiTranslator, DINR, DNxchange, do more, D-Verb, Equinox, ExpertRender, Face Robot, FACE ROBOT, FastBreak, Fast Track, FieldPak, Film Composer, FilmScribe, FluidMotion, FXDeko, HIIP, HyperSPACE, HyperSPACE HDCAM, IllusionFX, Image Independence, iNEWS, iNEWS ControlAir, Instinct, Interplay, Intraframe, iS9, iS18, iS23, iS36, ISIS, IsoSync, LaunchPad, Lightning, Lo-Fi, Magic Mask, make manage move | media, Marquee, Matador, Maxim, MCXpress, Media Browse, Media Composer, MediaDock, MediaDock Shuttle, Media Fusion, Media Illusion, MediaLog, Media Reader, Media Recorder, MEDIArray, MediaShare, MediaStream, Meridien, MetaFuze, MetaSync, MicroTrack, MissionControl, MovieBox, NaturalMatch, Nearchive, NetReview, NewsCutter, Nitris, OMF, OMF Interchange, OMM, Open Media Framework, Open Media Management, PCTV, Pinnacle MediaSuite, Pinnacle Studio, Pinnacle Systems, ProEncode, Pro Tools, QuietDrive, Recti-Fi, RetroLoop, rS9, rS18, SalesView, Sci-Fi, ScriptSync, SecureProductionEnvironment, Show Center, Softimage, Sound Designer II, SPACE, SPACEShift, SpectraGraph, SpectraMatte, Sputnik, SteadyGlide, SubCap, Symphony, SynchroScience, TARGA, Thunder, Thunder Station, TimeLiner, Torq, Trilligent, UnityRAID, Vari-Fi, Velvet, Video RAID, Video Slave Driver, VideoSPACE, Xdeck, and X-Session are either registered trademarks or trademarks of Avid Technology, Inc. in the United States and/or other countries.
Adobe and Photoshop are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States and/or other countries. Apple and Macintosh are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. Windows is either a registered trademark or trademark of Microsoft Corporation in the United States and/or other countries. All other trademarks contained herein are the property of their respective owners.
GOT FOOTAGE?
Editors — Filmmakers — Special Effects Artists — Game Developers — Animators — Educators — Broadcasters — Content creators of every genre — Just finished an incredible project and want to share it with the world?
Send us your reels and we may use your footage in our show reel or demo!*
For a copy of our release and Avid’s mailing address, go to www.avid.com/footage.
*Note: Avid cannot guarantee the use of materials submitted.
Avid Interplay SQL Sync Installation and Administration Guide • 0130-07644-03 Rev DAugust 2008 • This document is distributed by Avid in online (electronic) form only, and is not available for purchase in printed form
4

Contents

Using This Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Symbols and Conventions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
If You Need Help. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Viewing User Documentation on the Interplay Portal . . . . . . . . . . . . . . . . . . . . . . . . . 9
Accessing the Online Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
How to Order Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Avid Training Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Chapter 1 Overview of the SQL Syncer Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Chapter 2 Installing the SQL Syncer Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
SQL Syncer Setup Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Installing SQL Syncer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Running WorkgroupSQLSetup.exe on the Interplay Server (Optional). . . . . . . . . . . 18
First Export to SQL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Chapter 3 Avid Interplay Database Schema, Syncing and Querying . . . . . . . . . . . 21
Avid Interplay Database Schema . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Progress and Success Log . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Scheduled Synchronization. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Efficient Update Ability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
SQL Queries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Tutorial on View Creation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Reports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Chapter 4 SQL Syncer Configuration and Troubleshooting . . . . . . . . . . . . . . . . . . 27
SQL Syncer Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
SQL Syncer Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Appendix A Schema Table Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
wg_anonymous_properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
wg_dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
wg_dependency_types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
wg_dependency_usages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5
wg_exportinfo. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
wg_mimetypes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
wg_objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
wg_properties. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
wg_propertyinfo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
wg_propertytypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
6

Using This Guide

Congratulations on the purchase of your Avid® Interplay™, a powerful system for managing media in a shared storage environment.
This guide is intended for all Avid Interplay administrators who wan of their Avid Interplay databases to Microsoft® SQL Server™ databases.
The documentation describes the features and hardware of all models. Therefore, your
n
system might not contain certain features and hardware that are covered in the documentation.

Symbols and Conventions

Avid documentation uses the following symbols and conventions:
Symbol or Convention Meaning or Action
n
c
w
> This symbol indicates menu commands (and subcommands) in the
A note provides important related information, reminders, recommendations, and strong suggestions.
A caution means that a specific action you take could cause harm to your computer or cause you to lose data.
A warning describes an action that could cause you physical harm. Follow the guidelines in this document or on the unit itself when handling electrical equipment.
order you select them. For example, File > Import means to open the File menu and then select the Import command.
t to export the contents
(Windows), (Windows only), (Macintosh), or (Macintosh only)
This symbol indicates a single-step procedure. Multiple arrows in a list indicate that you perform one of the actions listed.
This text indicates that the information applies only to the specified operating system, either Windows or Macintosh OS X.
Symbol or Convention Meaning or Action
Bold font Bold font is primarily used in task instructions to identify user interface
items and keyboard sequences.
Italic font Italic font is used to emphasize certain words and to indicate variables.
Courier Bold font
Ctrl+key or mouse action Press and hold the first key while you press the last key or perform the

If You Need Help

If you are having trouble using your Avid product:
1. Retry the action, carefully following the instructions gi is especially important to check each step of your workflow.
2. Check the latest information that might have be was published:
- If the latest information for your Avid product is
they ship with your application and are also available online.
If the latest information for your Avid product is supplied on your Avid installation CD or DVD as a PDF document (README_product.pdf) and is also available online.
You should always check online for the most up because the online version is updated whenever new information becomes available. To view these online versions, select ReadMe from the Help menu, or visit
the Knowledge Base at www.avid.com/readme.
Courier Bold font identifies text that you type.
mouse action. For example, Command+Option+C or Ctrl+drag.
ven for that task in this guide. It
come available after the documentation
provided as printed release notes,
provided as a ReadMe file, it is
-to-date r
elease notes or ReadMe
3. Check the documentation that came with
your A
vid application or your hardware for
maintenance or hardware-related issues.
4. Visit the online Knowledge Base at www.avid.com/onlinesupport. Online services are available 24 hours per day, 7 days per week. Search this online
Knowledge Base to find answers, to view error messages, to access troubleshooting tips, to download updates, and to read or join online message-board discussions.
8

Viewing User Documentation on the Interplay Portal

Viewing User Documentation on the Interplay Portal
You can quickly access the Interplay user documentation from any system in the Interplay environment. Type the following line in your Web browser:
http://
where Interplay_Engine_name is th software. For example, the following line opens the portal Web page on a system named DocWG:
http://DocWG
Click the “Avid Interplay User Documentation” link to access the User Information
Interplay_Engine_name
e name of the computer running the Interplay Engine
Center page. On this page, select the Avid Interplay Framework User’s Guide from the list of user’s guides.

Accessing the Online Library

The Avid Interplay Online Library DVD contains all the Avid Interplay product documentation in PDF format.The Online Library includes a Master Glossary of all specialized terminology used in the documentation for Avid products.
Most Avid online libraries also include multimedia This multimedia content is an excellent first resource for learning how to use your application or for helping you understand a particular feature or workflow.
You need Adobe® Reader® to view the documentation online. You can download the latest
n
version from the Adobe web site.
conten
t such as feature presentations.
To access the online library from the Online Library DVD:
1. Insert the Online Library DVD into the drive.
2. Double-click the Mainmenu file.

How to Order Documentation

To order additional copies of this documentation from within the United States, call Avid Sales at 800-949-AVID (800-949-2843). If you are placing an order from outside the United States, contact your local Avid representative.
9

Avid Training Services

Avid makes lifelong learning, career advancement, and personal development easy and convenient. Avid understands that the knowledge you need to differentiate yourself is always changing, and Avid continually updates course content and offers new training delivery methods that accommodate your pressured and competitive work environment.
To learn about Avid's new online learning environment, Avid Learning Excellerator™ (ALEX), visit http://learn.avid.com.
For information on courses/schedu books, please visit www.avid.com/training or call Avid Sales at 800-949-AVID (800-949-2843).
les, training
centers, certifications, courseware, and
10

1 Overview of the SQL Syncer Tool

The Avid Interplay Engine provides extremely fast storage and access to object hierarchies and meta-information attached to the current version of each object. A fully-integrated fast searching implementation provides efficient access to subsets of the stored data.
What the Avid Interplay Engine does not be used by standard tools like Crystal Reports. Although the Avid Interplay searching implementation is flexible enough to fulfill a lot of requirements, it is not as powerful and flexible as SQL searches on a relational database system, for example.
In order to provide the missing flexibility wi engine inside the Avid Interplay Engine, the data stored in backups of the Avid Interplay Engine can be replicated into another SQL database. The optional SQL Syncer tool can be attached to the Avid Interplay Engine, from which it creates an initial information export and then on a set schedule, exports the entire Avid Interplay database regularly (an efficient update of only the database backup changes can configured instead). These changes are exported into the SQL database to which the SQL Syncer is connected. The view of the database can then be altered as needed.
This topic provides an overview over the SQL synchron replication of an Avid Interplay Engine database backup into an external database system.
Architecture Overview
The SQL Syncer sits between the Avid Interplay Engine and the SQL database server. The setup program installs the SQL Syncer as a service running in the background and automatically connecting to the configured Avid Interplay Engine and SQL database server on startup as specified during installation or in the configuration file.
After successfully establishing a connection, the SQL Syncer waits for a scheduled
synchronization with an Interplay Engine backup and then updates the new events in the corresponding SQL database.
provide i
s a standard searching interface that can
thout implementing a complete SQL query
ization architecture used in the
1 Overview of the SQL Syncer Tool
Limitations
The SQL synchronization architecture does not guarantee or imply that the Avid Interplay Engine and the external database are 100 percent in-sync all the time, as the SQL database is updated from the Interplay Engine backup. The SQL Syncer is an optional component which can be used to facilitate complex search queries on the data stored in an Avid Interplay Engine.
In case of network failures, database shutdowns or other problems in the involved components that prevent chang external database, the implementation does not perform an automatic resynchronization.
es to the Avid Interplay Engine from being propagated to the
12

2 Installing the SQL Syncer Tool

This chapter contain the following topics:
SQL Syncer Setup Requirements
Installing SQL Syncer
Running WorkgroupSQLSetup.exe on the Interplay Server (Optional)
First Export to SQL

SQL Syncer Setup Requirements

The following sections describe the hardware and software requirements for a successful installation of the SQL Syncer.
Software Requirements
The following versions are supported:
Microsoft SQL Server 2005
You must have the same version of the Interplay Engine installer as the SQL Syncer installer
n
or there may be issues with the database2.dll file.
Machine Setup Options
The three elements (Interplay Engine, SQL Syncer, and SQL database) of the SQL synchronization can be distributed successfully in the following ways:
Two machines: the Interplay Engine on one machi database on the other.
Three machines: Interplay Engine on one machi and the SQL database on a third machine.
ne, and the SQL Syncer and SQL
ne, the SQL Syncer on another machine,
2 Installing the SQL Syncer Tool
Machine Requirements/Limitations
Due to capacity requirements, Avid strongly recommends purchasing and using an unrestricted SQL Server license rather than use a restrict restricted-size version suits you Express Edition from here: http://www.microsoft.com/sql
r needs, you can download the free SQL Server 2005

Installing SQL Syncer

Contact your Avid representative to obtain a copy of the SQL Syncer installation program.
To install the SQL Syncer:
1. Make sure the Avid Interplay Engine is installed.
ed-size free version. If a
/editions/express/default.mspx.
See the Avid Interplay Software Installation how to install the Avid Interplay Engine.
2. Make sure the SQL Server is installed.
The SQL Server must be installed on a machine other than the A
3. Run the WorkgroupSQLSyncer.exe installation program.
The Welcome dialog box opens.
and Configuration Guide for instructions on
Interplay Engine.
vid
14
4. Click Next.
The License Agreement dialog box opens.
5. Read the text carefully and select “I accept the agreement.”
6. Click Next.
Installing SQL Syncer
The Specify Destination Locat
ion dialog box opens.
7. Enter the folder in which you want to install the SQL Syncer.
8. Click Next.
The Specify Interplay Backup Path dialog box opens.
15
2 Installing the SQL Syncer Tool
9. Type the path to the backup of the Avid Interplay database you want to sync to the SQL database.
10. Click Next.
The Server Execution User Dialog Box opens.
16
c
11. Select Custom user account and click Next. You are then be prompted to enter the custom User Name and Password, and to confirm the password.
Make sure to select Custom user account. This account must be the same account that runs the Avid Interplay Engine (the Server Execution User). For more information, see the Avid Interplay Software Installation and Configuration Guide.
12. Click Next.
The Specify SQL Server Name dialog box opens.
Installing SQL Syncer
13. Type the name of the SQL server host name that should be used by the SQL Syncer. Do one of the following:
t For a two-machine setup: leave the defa
ult (the current machine name)
t For a three-machine setup: change the SQL server name to the host name or IP
address of the SQL server computer.
The Specify SQL Server Settings dialog box opens.
17
2 Installing the SQL Syncer Tool
14. Specify the SQL Server instance name (if applicable), the Administrator user name and the Administrator password.
15. Click Next.
The Ready to Install dialog box opens.
16. Click Finish.
17. A reboot may be required if the database needs to be installed.
Installation Completed dialog box opens.
After a successful installatio
18. Click Finish.
n, the

Running WorkgroupSQLSetup.exe on the Interplay Server (Optional)

The EnableSQLUpdate feature can be turned on (it is off by default) on the Interplay Engine by running WorkgroupSQLSetup.exe. See “Efficient Update Ability” on page 24 for details before installing this feature, because it
To turn on the EnableSQLUpdate feature:
has a slight impact on server performance.
1. Start the WorkgroupSQLSetup.exe.
The Welcome dialog box opens.
2. Click Next.
18

First Export to SQL

If the functionality is already configured to be on, the Efficient SQL Updates Already dialog box opens. It allows you to reconfigure this setting.
a. Do one of the following:
-
lect “Keep Avid Interplay Engine configured for efficient SQL updates”
Se (default)
- Select “Remove efficient SQL update tables from the Avid Interplay Engine”
b. Click Next.
The Ready to Install dialog box opens.
3. Click Finish.
The Setup Completed dialog informs you of the succe
First Export to SQL
At the next scheduled update time, the SQL Syncer (DbToSql.exe) runs, creates the new SQL database, and exports the Interplay data it finds in the Interplay Backup directory. This first update might take a long time because the entire backup database must be exported.
ssful in
stallation.
19
2 Installing the SQL Syncer Tool
20
3 Avid Interplay Database Schema,
Syncing and Querying
This chapter contain the following explanations:
Avid Interplay Database Schema
Progress and Success Log
Scheduled Synchronization
Efficient Update Ability
SQL Queries
Tutorial on View Creation
Reports

Avid Interplay Database Schema

The Avid Interplay database schema provides a flexible, efficient, and self-contained implementation that mirrors essential data from the Avid Interplay database.
Design Objectives
The goal of the data model was to provide a flexible approach that can deal with the highly dynamic character of the Avid Interplay database. In Avid Interplay, an application is not restricted regarding the property space. The creation of a new property in the Avid Interplay Engine is implicitly performed as soon as an application sets a property the first time.
The Avid Interplay Engine is designed to provide relational database system with its table-based data structures is more designed to deal with data models which are mainly fixed and don't change over time.
The goal behind the design of the data model for the Avid Interplay Engine synchronization
as
to provide a flexible, efficient and self-contained implementation. Flexible because the
w dynamic creation of properties must be properly mapped to corresponding data structures in the database. Efficient means that for updating, adding or getting meta-information, a
such a flexible structure. In contrast, a
3 Avid Interplay Database Schema, Syncing and Querying
minimal number of tables and rows in the database are affected. Self-containment means that all information for finding out where the requested data is stored is kept inside the same database.
Overview
There is one table which stores basic information about all objects in the Avid Interplay database. The basic information includes the object's handles and information about the position of the object in the hierarchical object tree.
Schema
The schema exported to SQL is simple and fixed. Objects and their properties, dependencies between objects, and a few lookup tables are supported. The most important properties live in the WG_OBJECTS table as a column. For objects in the server, a BIH is stored for each unique version object, and a BDH to refer to the set of versions. For the export, only the current version of the objects is considered, which reduces the output table size and complexity of the schema.
Do not alter the schema; an alteration leads to an exception at export time. Instead,
n
additional columns can be added onto the schema using views (see “Tutorial on View
Creation” on page 25.)
22
The following diagram shows the export from the Interplay Database.
schema for the e
xport of the current object snapshot
Avid Interplay Database Schema
See “Schema Table Descriptions” on page 31 for complete descriptions of the tables.
23
3 Avid Interplay Database Schema, Syncing and Querying

Progress and Success Log

The progress and success of the SQL Syncer is written to the DbToSQL.log file located in C:\Program Files\Avid\Avid Interplay SQL Syncer\Bin.

Scheduled Synchronization

The installer schedules the SQL Syncer to run daily at 5:00 am. This can be changed in the configuration file found in C:\Program Files\Avid\Avid Interplay SQL Syncer\Bin\DbtoSQL.xml. See “SQL Syncer Configuration” on page 27 for details.

Efficient Update Ability

If the EnableSQLUpdate feature is turned on, the Avid Interplay Engine keeps a record of (timestamp,object id) pairs, so that on subsequent runs the SQL Syncer only needs to look at objects changed since the last update time instead of exporting the entire database backup. This can drastically reduce the amount of time required to export to SQL. It does have a slight performance impact on the server (2 to 3 percent in a dedicated test constantly updating Interplay objects).
See “Running WorkgroupSQLSetup.exe on the Interplay Server (Optional)” on page 18 for information about turning the feature on.
24

SQL Queries

After exporting the Interplay Database to the SQL database, you can view the exported contents and run queries.
SQL Queries

Tutorial on View Creation

The following tutorial shows how you can modify the schema by working with views defined on top of the tables provided.
1. Add the property value NxNSer determine the propertyhandle for NxNServer_AuthOwner.
select * from wg_propertyinfo where name LIKE 'NxNServer_AuthOwner'
Output:
propertyhandle name flags type
238 'NxNServer_AuthOwner' 6145 11
ver_AuthOwner as a column on wg_objects. First
25
3 Avid Interplay Database Schema, Syncing and Querying
2. Test a SQL query that does this:
select vo.*,vp.stringvalue AuthOwner from wg_objects vo, wg_properties vp where vo.bdh=vp.bdh and vp.propertyhandle=238
Output:
bdh parent_bdh name <etc> AuthOwner
4 3 ‘NxNServer_PropStorageType' ... 'Administrator'
...
3. Create that as a view.
create view vobjects_wauthowner as select vo.*,vp.stringvalue AuthOwner from wg_objects vo, wg_properties vp where vo.bdh=vp.bdh and vp.propertyhandle=238
4. Run the view.
select * from vobjects_wauthowner
Output:
bdh parent_bdh name <etc> AuthOwner
4 3 'NxNServer_PropStorageType' ... 'Administrator'
...

Reports

If you have Crystal Reports you can load a sample report to use as a template from C:\Program Files\Avid\Avid Interplay SQL Syncer\Cry
26
stalReports.
4 SQL Syncer Configuration and
Troubleshooting
This section contains the following topics:
SQL Syncer Configuration
SQL Syncer Troubleshooting

SQL Syncer Configuration

The SQL Syncer is configured through an XML configuration file, DbToSQL.xml, which can be found in the installation directory, for example:
C:\Program Files\Avid\Avid Interplay SQL Syncer\Bin\DbToSQL.xml
The XML file should contain, in an xml conf
Type of SQL database you are connecting to
SQL database location
Username/password used to conne
For each Interplay Engine database you want to back up:
- UNC path to its backup folder
- Frequency information and time for the
By default, the SQL Syncer is scheduled to run daily at 5:00 am. You can change that to any time or frequency. One possibility is to estimate or measure how long a nightly backup takes, and then schedule a sync on that new backup some hours later. You can sync with either a full backup or a partial backup.
iguration format, the follo
ct to the database
export to occur
wing information:
4 SQL Syncer Configuration and Troubleshooting
The following is an example of a configuration file:
<config>
<database server="kabelbinder"
type="MSSQLServer"
username="sa"
password="sa"
retriesBeforeScan="3"/>
<exportlist>
<workgroup backuppath="\\MACHINEA\WG_Database$\AvidWG\_Backup"
schedule="-05:00"/>
</exportlist>
</config>
28
The following tables describe the configuration file nodes and their attributes:
Node Descriptions
Node Name Parent Node Description
config NONE Top level node of the config file.
It must contain a database node and an exportlist node.
database config Describes the SQL server you
are exporting to.
exportlist config Contains a list of Interplay
databases you want to export to SQL
workgroup exportlist There is one workgroup node for
each Interplay Database you want to export. It describes the path to the backup directory and specifies the times backup should be performed.
SQL Syncer Configuration
Database Node Attribute Descriptions
Attribute Name Default Value Description
server None, must be set Specify the SQL Server that you
are exporting to here. For SQL Server, if you have a named instance, the syntax is <server>\<named instance>
type None, must be set Type must be "MSSQLServer".
username None, must be set The username to use in
connecting to the SQL database.
password None, must be set The password to use in
connecting to the SQL database.
retriesBeforeScan “3” You can customize the number
of times DbToSql retries an Efficient Update before reverting to a full export.
Workgroup Node Attribute Descriptions
Attribute Name Default Value Description
backuppath None, must be set The path to the backup directory
for the Interplay database you wish to export. DbToSql chooses the most recent completed backup subdirectory from this location.
29
4 SQL Syncer Configuration and Troubleshooting
Workgroup Node Attribute Descriptions (Continued)
Attribute Name Default Value Description
schedule None, must be set This is in the format "-HH:MM"
where HH:MM is a time in 24-hour time format when the backup should happen. It can also be in the format "*HH:MM" where HH:MM is a time interval describing how often an export should happen. For example, "*01:00" means an export should be performed every hour. Finally, the format "+HH:MM,HH:MM,…" is supported, where each HH:MM entry in the comma-separated list is a time in 24-hour time format when the export should be performed. For example, "+01:00,13:00" means that an export should occur at 1 am and 1 pm daily.
databasename The default database name is the
name of the Interplay database being exported.

SQL Syncer Troubleshooting

Running the Export Immediately
By running dbtosql.exe kickstart from a command prompt, you initiate an immediate export from the Interplay backup directory to the SQL server, for each project in dbtosql.xml.
Any errors or messages go to the log file. This is a usef is less cumbersome than setting a time to export in the dbtosql.xml file, and you get immediate feedback on success or failure of the process.
30
By default, DbToSql creates or exports to a SQL database with the same name as that of the Interplay database being exported. You can override this behavior by specifying the SQL database name here.
ul diagnostic or test mode because it

A Schema Table Descriptions

This chapter contains the following Avid Interplay database schema tables:
wg_anonymous_properties
wg_dependencies
wg_dependency_types
wg_dependency_usages
wg_exportinfo
wg_mimetypes
wg_objects
wg_properties
wg_propertyinfo
wg_propertytypes

wg_anonymous_properties

One row for each anonymous property assigned to an object.
Column Name Type Description
bdh Bigint The BDH for the object
with the anonymous property.
propertytype Bigint Propertytype maps to
information about the property.
propertyid Bigint A numeric ID used to
separate anonymous properties.
value ntext The string value of the
anonymous property.

wg_dependencies

One row for each dependency relationship between two objects (designated "from" and "to" objects).
Column Name Type Description
from_bdh bigint The BDH for the "from"
type bigint The type of the
usageid bigint Usageid maps to a string
to_bdh bigint The BDH for the "to"
object_bdh If an object is associated
object.
dependency, viewable with a lookup in wg_dependency_types.
associated with the dependency.
object.
with the dependency link, it's BDH handle is specified here. (may be NULL).

wg_dependency_types

Column Name Type Description
type bigint The type ID
name ntext The dependency type
32
name.

wg_dependency_usages

Column Name Type Description
usageid bigint The dependency usageid.
value ntext The associated string.

wg_exportinfo

There is one row for each attempt to export the Interplay database to SQL. was_successful indicates success.
Column Name Type Description
exporttime datetime The time of the last
updatetime datetime The last time the
wg_dependency_usages
export attempt.
Interplay Engine database was modified.
was_successful tinyint 1 if the attempt was
successful.
deltaupdate tinyint 1 if an efficient update
could be performed (as opposed to a full export).
durationseconds int The time required to
complete the export.
message ntext In case of an error, this
contains text for a diagnosis.
33

wg_mimetypes

Column Name Type Description
bdh bigint The BDH for the Mime
name ntext The name of the mime
path ntext The path for the mime
ext ntext The file extention string

wg_objects

Type object.
type.
type in a tree of mime types organized in broad categories.
for files associated with this mime type.
Each row is a Workgroup Object.
Column Name Type Description
bdh bigint The canonical object
identifier.
bih bigint The low level ID of the
object (often called the BIH)
parent_bdh bigint The BDH of the parent
object.
name ntext The object name.
mimetype_bdh bigint The BDH of the mime
type for this object. If there is no mime type object associated this field is NULL.
flags bigint Low-level object flags
(undefined).
34
Column Name Type Description
isfolder tinyint True if the object is a
ischeckedout tinyint True if the object is
issystem issystem True if the object is a
smot datetime Server File Modification
simt datetime Server File Import Time
scit datetime Server Check In Time
scrt datetime Server File Creation Time

wg_properties

wg_properties
folder.
checked out.
Workgroup System object.
Time
Each row represents a property on an object. Exactly one of stringvalue, integervalue or utcvalue is non-NULL for each row. The propertyhandle determines the type.
Column Name Type Description
bdh bigint The BDH for the
containing object.
propertyhandle bigint The property handle.
stringvalue ntext The string value (may be
NULL)
integervalue bigint The integer value (may
be NULL)
utcvalue datetime The datetime value (may
be NULL)
35

wg_propertyinfo

For each unique propertyhandle, there is a row giving more details about the property type.
Column Name Type Description
propertyhandle bigint The unique handle for
name ntext The property name.
propertytype bigint References the property

wg_propertytypes

A row is given for each unique property type in the system.
Column Name Type Description
each property.
type (see table wg_propertytypes).
36
propertyname bigint The ID for the property
type.
name ntext The property type name.
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Index

C
Configuring
SQL Syncer 24
Crystal Reports
from SQL Syncer
26
D
DbToSql.exe
first export
19
E
EnableSQLUpdate
described enabling
Exporting
Interplay data to SQL
24
18
H
Hardware requirements
SQL Syncer
13
I
Installation
EnableSQLUpdate SQL Syncer
Interplay database schema
described
21
18
13
19
L
Logging
SQL Syncer
24
R
Reporting
from SQL Syncer
26
S
Scheduling
SQL Syncer
Schema table descriptions
SQL Syncer
Software requirements
SQL Syncer SQL Server license SQL Syncer
architectural overview
configuration
configuring
Crystal Reports report
efficient updates
first export to SQL
installing
Interplay database schema
log file
running immediately
scheduling
schema descriptions
setup options
software and hardware requirements
troubleshooting
view creation
viewing exported contents
24
31
13
14
11
27
24
26
24
19
13, 14
21
24
30
24
31
13
30
25
25
13
Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
SQL synchronization
from Interplay backup 11
sqlconfig.xml
configuration
Synchronization
from Interplay backup
27, 27
11
T
Troubleshooting
SQL Syncer
30
V
View creation
SQL Syncer
25
W
WorkgroupSQLSetup.exe
running
18
WorkgroupSQLSyncer.exe
running
14
38
Loading...