1 P a g e. TMS Data Modeler



Similar documents
From Data Modeling to Data Dictionary Written Date : January 20, 2014

Getting Started with Telerik Data Access. Contents

MS WORD 2007 (PC) Macros and Track Changes Please note the latest Macintosh version of MS Word does not have Macros.

DbSchema Tutorial with Introduction in SQL Databases

Managing Third Party Databases and Building Your Data Warehouse

2Creating Reports: Basic Techniques. Chapter

What s New in Delphi for PHP 2.0. New and Enhanced IDE Features. Form Designer

Bitrix Site Manager 4.0. Quick Start Guide to Newsletters and Subscriptions

Using the Asset Diagram in Innoslate

TRIAL SOFTWARE GUIDE 1. PURPOSE OF THIS GUIDE 2. DOWNLOAD THE TRIALSOFTWARE 3. START WIDS 4. OPEN A SAMPLE COURSE, PROGRAM

Databases What the Specification Says

Toad Data Modeler - Features Matrix

Applicant Workflow Hiring Managers

ONBASE OUTLOOK CLIENT GUIDE for 2010 and 2013

Abstract. For notes detailing the changes in each release, see the MySQL for Excel Release Notes. For legal information, see the Legal Notices.

Software User Manual. Table of Contents

IceWarp Server Windows Installation Guide

IceWarp Unified Communications. Installation Guide. Version 10.4

Create a New Database in Access 2010

LabVIEW Report Generation Toolkit for Microsoft Office User Guide

Writer Guide. Chapter 15 Using Forms in Writer

- First Steps. Introduction Creating a new testsuite Blocks and libraries Creating your first (compound) block...

Creating Database Tables in Microsoft SQL Server

BreezingForms Guide. 18 Forms: BreezingForms

Acrobat X Pro Accessible Forms and Interactive Documents

Data Movement Modeling PowerDesigner 16.1

Application Note. Example of user log on Magelis HMI with XB5S5B2L2 biometric switch. Advanced Technical Support - Brazil. Version: 1.

TestManager Administration Guide

Kaldeera Workflow Designer 2010 User's Guide

User Guide. SysMan Utilities. By Sysgem AG

Using the JNIOR with the GDC Digital Cinema Server. Last Updated November 30, 2012

OmniDB - User s Guide

Copyright 2006 TechSmith Corporation. All Rights Reserved.

Toad for Data Analysts, Tips n Tricks

Visual Basic 2010 Essentials

Microinvest Warehouse Pro Light Restaurant is designed to work in tandem with Microinvest Warehouse Pro which provides all back office functions.

LabVIEW Report Generation Toolkit for Microsoft Office

CCC Report Center Overview Accessing the CCC Report Center Accessing, Working With, and Running Reports Customizing Reports...

CATIA Basic Concepts TABLE OF CONTENTS

Macros in Word & Excel

Bitrix Site Manager 4.1. User Guide

GETTING STARTED WITH FLEXI-CLOUD

ACTIVE CONTENT MANAGER (ACM)

LABSHEET 1: creating a table, primary keys and data types

vcenter Orchestrator Developer's Guide

Form Management Admin Guide

Chapter 15 Using Forms in Writer

Microsoft Office Access 2007 which I refer to as Access throughout this book

Subscribe to RSS in Outlook Find RSS Feeds. Exchange Outlook 2007 How To s / RSS Feeds 1of 7

Adobe Acrobat 9 Pro Accessibility Guide: Creating Accessible Forms

designvue manual v1 Index This document contains the following sections:

Using SQL Server Management Studio

Visio Tutorial 1BB50 Data and Object Modeling (DOM) How to make a UML Class Diagram 2004/2005

3. Locate the different selections of Styles from the Home Tab, Styles Group

Microsoft Office PowerPoint Creating a new presentation from a design template. Creating a new presentation from a design template

Creating tables of contents and figures in Word 2013

Custom Apps A Beginners Guide

Excel Companion. (Profit Embedded PHD) User's Guide

Databases in Engineering / Lab-1 (MS-Access/SQL)

Jolly Server Getting Started Guide

v7.1 SP2 What s New Guide

THANK YOU FOR INSTALLING CARBONITE SERVER BACKUP!

Using the SAS Enterprise Guide (Version 4.2)

How to Make the Most of Excel Spreadsheets

JORAM 3.7 Administration & Monitoring Tool

If you are you are using Microsoft outlook 2007, then new toolbar will be added below the Outlook menu bar,

Data Generator for SQL Server User's Manual EMS Database Management Solutions

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

3 IDE (Integrated Development Environment)

Microsoft Outlook Introduction

Kodu Curriculum: Getting Started with Keyboard and Mouse

Fax and SMS Quickguide

HIC.SOAP Network User Instructions last updated June 22, :39 AM

ODBC Driver Version 4 Manual

Downloading RIT Account Analysis Reports into Excel

Configuring the SST DeviceNet OPC Server

Welcome to the topic on Master Data and Documents.

Richmond Systems. SupportDesk Web Interfaces - Quick Start Guide

RCS Newsletter User's Guide

Working with Visio Connectors

Access Tutorial 1 Creating a Database

Print Manager Plus 2010 How to Migrate your Database to a New SQL or Print Server

What Is Online Archiving?

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Entering the example employee satisfaction survey in Survey Crafter Professional s Survey Designer window

MONAHRQ Installation Permissions Guide. Version 2.0.4

Integrated Accounting System for Mac OS X

JAMS 6.X Client Features 3. Working with Jobs 4-5. Submitting Jobs Manually 6-7. Working with Setups 8-9. Working with Views 10-14

Excel macros made easy

Managing your Windows 7 Task Bar and Start Menu

S7 for Windows S7-300/400

PeopleSoft Compare Process

ODBC And SQL. V4.x 06/30/2005 Document v1.01

Word 2007 Unit B: Editing Documents

CONTACTS SYNCHRONIZER FOR IPAD USER GUIDE

Rx Medical. SMD Utility. Task Scheduler Configuration

Using the VMware vrealize Orchestrator Client

Unleashing Hidden Powers of Inventor with the API Part 1. Getting Started with Inventor VBA Hello Inventor!

Transcription:

Introduction Data modeling is a mandatory requirement throughout the lifetime of a database system: from the initial design of the software, when the first structure is created and modeled, to later on, in system updates, when database structure is modified. There are also situations where manipulation of database structure may be a complicated task, such as when there is a need to get a productive system and to work on a non-documented database, or convert a database from a DBMS to another. There are several tools related to data modeling on the market: some DBMS-specific, others generic; some useful to specific and isolated tasks, others offering a multitude of features (and usually not very cheap). TMS Data Modeler is a tool that provides nothing but essential features for creating and maintaining a database: it integrates database design, modeling, creation and maintenance into a single environment, in a simple and intuitive user interface to manipulate databases efficiently. This article briefly describes the main features of TMS Data Modeler, demonstrating how it may be used to create a project and maintain an existing database. Data Modeler main features TMS Data Modeler is a generic tool that allows data modeling independently of the used DBMS, in an easy-to-use interface. The application allows you to start modeling a database from scratch, as well as import the structure of an existing database (reverse engineering). It allows you to generate scripts to create the full database, or upgrade an existing database with update script, through its version control system. In addition, it provides features for conversion from one DBMS to another, consistency check and visualization of entityrelationship diagrams, among others. Data Modeler supports several database management systems, currently: Absolute Database, Firebird 2, MS SQL Server 2000/2005/2008, MySQL 5.1, NexusDB V3 and Oracle 10g. Creating a project in TMS Data Modeler There are two ways to start a project in Data Modeler: creating a new project from scratch or importing data dictionary from an existing database. Choosing the "New Project" option, just select the target database and an empty project will be created. By default Data Modeler provides a diagram named "Main Diagram". Tables and relationships between them can be created visually through the diagram. All objects in the database (apart from tables we can have procedures, views, etc.) can be accessed, created and edited through the Project Explorer, located on the left of the screen. In the "Import from Database" option you need to configure the connection to the database whose structure will be imported. After importing the structure, Data Modeler will hold all the database objects: tables, relationships, triggers, procedures, views, etc. All objects are listed at Project Explorer on the left, in their respective category. For an overview of the imported structure, it is possible to open the "Main Diagram" and select "Add all tables" from the context menu. 1 P a g e

Versioning database To use the version control features of TMS Data Modeler (comparison and identification of changes, script generation for upgrade) it is necessary to archive versions so they are kept in history. By default any new project starts at version 1, with the status "under construction". In this example, after importing the structure of an existing database, we will archive the first version. Once this version is archived, its status is changed to "closed", and a new version (2) is created with the status "under construction". All changes from now on will be part of the second version. 2 P a g e

Creating and editing database objects The Project Explorer on the left provides access to viewing and editing interfaces to all existing objects, as well as creating new ones through the context menu. Data Modeler's interface allows multiple objects to be opened simultaneously, organized into tabs, which allows easy navigation among them. In this example we will create a new table named "attachments", and later we will relate it to the existing table "projects". We will also create a new field "filesize" in the table "blobs". Data Modeler allows you to create different diagrams by dragging the desired tables from Project Explorer to the diagram area; related tables are automatically linked. As a result, it is possible to see different sets of tables, separated by module or system context. To relate the two tables visually, through the diagram, insert a new diagram to make viewing easier, and drag the "projects" and "attachments" tables from Project Explorer to diagram area. Selecting the "Relationship" button on the toolbar, just click on the parent table and drag the mouse to the child table. This will display a window for inserting a new relationship, in which we can set its name, keys and other options. After confirmation, the relationship between the tables is created and displayed immediately in the diagram. Note that a field "ProjectID" was automatically created in the "attachments" table, related to the primary key in the "projects" table. 3 P a g e

Version upgrade After the changes are made in the project, version 2 becomes different from version 1, which was archived right after importing the structure from the database. Using the comparing versions tool of Data Modeler, we can view the structure of each version side by side, with their differences highlighted (created, removed or changed objects), and the creation script of selected objects. On the same screen we can select the changes to generate a script to update the database. 4 P a g e

Clicking on "Generate", we have our script ready to update the database from version 1 to version 2, containing all alterations. 5 P a g e

Reading the structure of a Data Modeler project from your application TMS Software offers a free library, Data Modeler Library (DMLib), which allows access to the structure of a database stored in a TMS Data Modeler project, from any application in Delphi or C++Builder. It is a collection of read-only classes containing clear methods and properties for obtaining information about all objects from the data dictionary. Here is a small example of how to use DMLib for getting the fields and their data types from a specific table in the data dictionary: Output: program DMread; uses SysUtils, uappmetadata, ugdao; var amd: TAppMetaData; table: TGDAOTable; field: TGDAOField; i: integer; begin amd := TAppMetaData.LoadFromFile('C:\tmssoftware\dmlib\jedivcs.dgp'); try table := amd.datadictionary.tablebyname('attachments'); if table <> nil then begin for i := 0 to table.fields.count-1 do begin field := table.fields[i]; Writeln(Format('Field %d: %s [%s]', [i + 1, field.fieldname, field.datatype.name])); end; end else Writeln('Table not found.'); finally amd.free; end; end. Field 1: idattachment [Int (identity)] Field 2: description [VarChar] Field 3: filename [VarChar] Field 4: createdon [Datetime] Field 5: content [Image] Field 6: PROJECTID [Int] Conclusion In this article only the main features of TMS Data Modeler have been described, with examples of how to create a project and maintain a database using this tool. TMS Data Modeler offers many other features for modeling and maintaining databases, and comes with complete manual reference and online help. Access our website for details on further application features and benefits. For more information and a free trial download of TMS Data Modeler, visit: http://www.tmssoftware.com/site/tmsdm.asp TMS Data Modeler Library is available for free at: http://www.tmssoftware.com/site/tmsdmlib.asp 6 P a g e