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.
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.:
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:
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 D• August 2008 • This
document is distributed by Avid in online (electronic) form only, and is not available for purchase in printed form
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 fontBold font is primarily used in task instructions to identify user interface
items and keyboard sequences.
Italic fontItalic font is used to emphasize certain words and to indicate variables.
Courier Bold font
Ctrl+key or mouse actionPress 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
1Overview 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
2Installing 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:
tFor a two-machine setup: leave the defa
ult (the current machine name)
tFor 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
3Avid 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
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
•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:
The following tables describe the configuration file nodes and their attributes:
Node Descriptions
Node NameParent NodeDescription
configNONETop level node of the config file.
It must contain a database node
and an exportlist node.
databaseconfigDescribes the SQL server you
are exporting to.
exportlistconfigContains a list of Interplay
databases you want to export to
SQL
workgroupexportlistThere 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 NameDefault ValueDescription
serverNone, must be setSpecify the SQL Server that you
are exporting to here. For SQL
Server, if you have a named
instance, the syntax is
<server>\<named instance>
typeNone, must be setType must be "MSSQLServer".
usernameNone, must be setThe username to use in
connecting to the SQL database.
passwordNone, must be setThe 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 NameDefault ValueDescription
backuppathNone, must be setThe 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 NameDefault ValueDescription
scheduleNone, must be setThis 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.
databasenameThe 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
ASchema 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 NameTypeDescription
bdhBigintThe BDH for the object
with the anonymous
property.
propertytypeBigintPropertytype maps to
information about the
property.
propertyidBigintA numeric ID used to
separate anonymous
properties.
valuentextThe string value of the
anonymous property.
wg_dependencies
One row for each dependency relationship between two objects (designated "from" and "to"
objects).
Column NameTypeDescription
from_bdhbigintThe BDH for the "from"
typebigintThe type of the
usageidbigintUsageid maps to a string
to_bdhbigintThe BDH for the "to"
object_bdhIf 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 NameTypeDescription
typebigintThe type ID
namentextThe dependency type
32
name.
wg_dependency_usages
Column NameTypeDescription
usageidbigintThe dependency usageid.
valuentextThe associated string.
wg_exportinfo
There is one row for each attempt to export the Interplay database to SQL. was_successful
indicates success.
Column NameTypeDescription
exporttimedatetimeThe time of the last
updatetimedatetimeThe last time the
wg_dependency_usages
export attempt.
Interplay Engine database
was modified.
was_successfultinyint1 if the attempt was
successful.
deltaupdatetinyint1 if an efficient update
could be performed (as
opposed to a full export).
durationsecondsintThe time required to
complete the export.
messagentextIn case of an error, this
contains text for a
diagnosis.
33
wg_mimetypes
Column NameTypeDescription
bdhbigintThe BDH for the Mime
namentextThe name of the mime
pathntextThe path for the mime
extntextThe 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 NameTypeDescription
bdhbigintThe canonical object
identifier.
bihbigintThe low level ID of the
object (often called the
BIH)
parent_bdhbigintThe BDH of the parent
object.
namentextThe object name.
mimetype_bdhbigintThe BDH of the mime
type for this object. If
there is no mime type
object associated this
field is NULL.
flagsbigintLow-level object flags
(undefined).
34
Column NameTypeDescription
isfoldertinyintTrue if the object is a
ischeckedouttinyintTrue if the object is
issystemissystemTrue if the object is a
smotdatetimeServer File Modification
simtdatetimeServer File Import Time
scitdatetimeServer Check In Time
scrtdatetimeServer 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 NameTypeDescription
bdhbigintThe BDH for the
containing object.
propertyhandlebigintThe property handle.
stringvaluentextThe string value (may be
NULL)
integervaluebigintThe integer value (may
be NULL)
utcvaluedatetimeThe datetime value (may
be NULL)
35
wg_propertyinfo
For each unique propertyhandle, there is a row giving more details about the property type.
Column NameTypeDescription
propertyhandlebigintThe unique handle for
namentextThe property name.
propertytypebigintReferences the property
wg_propertytypes
A row is given for each unique property type in the system.
Column NameTypeDescription
each property.
type (see table
wg_propertytypes).
36
propertynamebigintThe ID for the property
type.
namentextThe 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...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.