Chat now with support
Chat with Support

Toad Data Modeler 7.0 - User Guide

Introduction User Interface Models and Model Objects
Physical Data Model
Entity Relationship Diagram Objects Basic Database Design Advanced Database Design
Universal Data Model Logical Data Model Working with Model Objects
Features and Tools
Application Variables Export/Import DDL Script Generation Graphics Model Actions Print Create New Project Reports Reverse Engineering Scripting and Customization About Templates Tips and Tricks Toad for Oracle Integration Toad Intelligence Central (TIC) Integration Tools Version Control
Options and Configuration Databases
Amazon Redshift 1.0 IBM DB2 LUW 9.5 IBM DB2 LUW 9.7 IBM DB2 LUW 10.1 IBM DB2 LUW 10.5 IBM DB2 LUW 11.1 IBM DB2 z/OS 10 IBM DB2 z/OS 11 Greenplum 4.1 Greenplum 4.2 Ingres 9.3 Ingres 10.0 EDB Postgres Advanced Server 10 Microsoft Access 2007/2010 Microsoft Azure SQL Database V12 Microsoft SQL Server 2005 Microsoft SQL Server 2008 Microsoft SQL Server 2012 Microsoft SQL Server 2014 Microsoft SQL Server 2016 Microsoft SQL Server 2017 MySQL 5.0 MySQL 5.1 MySQL 5.5 MySQL 5.6 MySQL 5.7 MySQL 8.0 Oracle 10g Oracle 11g Release 1 Oracle 11g Release 2 Oracle 12c Release 1 Oracle 12c Release 2 Oracle 18c Specifics - Oracle 12c Release 2 PostgreSQL 9.0 PostgreSQL 9.1 PostgreSQL 9.2 PostgreSQL 9.3 PostgreSQL 9.4 PostgreSQL 9.5 PostgreSQL 10 SQLite 3.7 Sybase ASE 15.5 Sybase ASE 15.7 SAP ASE 16.0 Sybase IQ 15.2 Sybase SQL Anywhere 11 SAP SQL Anywhere 17 Teradata 13 Vertica Database 8.0
Copyright Legal Notices

Indexes

To create an index

  • Right-click an entity on Workspace and choose Add | Index. The Index Properties dialog opens.

or

  • In the Entity Properties form, select the Indexes tab and click Add.

To edit indexes

  • In the Entity Properties dialog | Indexes tab, double-click the index or Edit.
Option Description

Above the Object Navigator Dropdown Menu, you can see name of entity that the index belongs to. Click the button on top right-hand corner to open the parent form (Entity Properties form).

Object Navigator Dropdown Menu

All indexes of selected entity are listed here. The box allows you to edit indexes quickly and comfortably from one place.

Use buttons to change order of indexes. Use Ctrl + Up to move index upwards or Ctrl + Down to move it downwards.

General Tab

Description

Caption

Logical attribute name.

Name

Physical attribute name.

Schema

Schema selection.

Unique

Select this option to set the index as unique. Via unique indexes, you can link entities together. See Select Parent Key for Relationship for more information on available linking methods.

Bitmap Index

Database dependent item (Oracle). Select this checkbox to define the index as bitmap index.

Generate

Select it to generate the index in final SQL (DDL) script. (It is selected by default.)

Note: Other options on the General tab vary according to the database platform you're using. Options specific to your database can be found in the "Databases" chapter.

Items Tab

Option

Available

A list of all attributes of the entity.

Selected

Attribute(s) that have been assigned to the index.

Notes Tab

Tab for notes on the index.

Index Properties Tab Description

Tablespace

Select a tablespace or click the button on the right to define a new tablespace.

Indextype

Index type definition

ODCI Parameters

ODCI parameters definition

To display indexes on the Workspace

Right-click the WS, select Workspace Format | Entity tab and select the Display Indexes checkbox.

See how indexes are displayed:

Note:Even when the indexes are not displayed, you can see which attribute belongs to which index (e.g. attribute Name is assigned to indexes i_name and i_name_address - (IX1,IX2)

To delete an index

In the Entity Properties dialog select the Indexes tab, choose the index and click Delete.

Check Constraints

Check constraints can be created in the Check Constraints tab in Entity Properties form (for multiple column check constraints) or in the Attribute Properties dialog (for single column check constraint).

To add a check constraint

In Entity Properties form, select the Check Constraints tab and click Add.

To edit a check constraint

In Entity Properties form | Check Constraints tab, double-click the selected check constraint or press Edit .

General Tab

Description

Caption

Logical check constraint name

Name

Physical check constraint name

Check Constraint Rule

Select rule or click the button on the right to define a new rule.

Generate

Select it to generate the check constraint in final SQL (DDL) script (selected by default).

SQL Tab

Write SQL script for the check constraint here.

See About Templates for more information.

Notes Tab

Space for your notes on the check constraint.

Note:

  • To copy a check constraint, press CTRL and drag the constraint over the Check Constraints folder of a target entity in Model Explorer.
  • To move a check constraint, drag it over the Check Constraints folder of a target entity in Model Explorer.
  • To delete a check constraint, select it and click Delete in the Check Constraints tab of the Entity Properties form.

Triggers

To add a trigger

In Entity Properties form, select the Triggers tab and click Add.

To edit a trigger

In Entity Properties form, Triggers tab, double-click the selected trigger or press Edit.

Example: Trigger Properties dialog (Oracle 10g db)

Option Description

Above the Object Navigator Box, you can see name of entity the trigger belongs to. If you click the button in top right-hand corner, the parent form will open (Entity Propertiesin this case).

General Tab

Description

Caption

Logical trigger name

Name

Physical trigger name

Schema

Schema selection box

Trigger Fire

Before, After (database dependent) - select a trigger fire.

Trigger Events

Delete, Insert, Update - select a trigger event.

Generate

Select to generate the trigger in final SQL (DDL) script (selected by default.)

Generate SQL Only

Select to generate the SQL code written in tab SQL only.

SQL Tab

Write SQL script for the trigger here.

About Templates

Notes Tab

Space for your notes on the trigger.

 

Example: Trigger Properties dialog | SQL tab (Oracle 10g db)

Note:

  • To copy a trigger, press CTRL and drag the trigger over the Triggers folder of a target entity in Model Explorer.
  • To move a trigger, drag it over the Triggers tab (folder) of a target entity in Model Explorer.
  • To delete a trigger, select it and click Delete on the Triggers tab in the Entity Properties form.

Views

Toad Data Modeler allows you to display and model views in your ER diagrams visually.

You can manage Views via:

  • Model menu | Model Items |Views
  • Model Explorer | Views folder

View properties and options are database dependent.

To create a new view

  1. Click on the toolbar and then click the workspace.
  2. Click on the toolbar and draw view relationships between some existing table or view and your newly created view.
  3. Double click the view relationship line to edit it. In Alias field you can specify a new alias name for the linked table.


  4. Double-click the view to edit it.
  5. Define properties on General tab and other tabs.
  6. On tab Attributes you can select columns from the linked tables. Relationship aliases and names of entities are displayed.

  1. You can use a template on SQL tab of the view.

NOTE: As well as for entities and relationships, you can create shortcuts of views on the workspaces of your model. List of view shortcuts can be found in Model Explorer | in particular Workspace folder and in the Views folder | Shortcuts.

NOTE:There are some limitations for modeling and reverse engineering of views in Toad Data Modeler. In the following cases views are loaded/modeled as "Select in Views as Text" without view relationships:

  • When JOIN is used inside FROM statement. CROSS JOIN is the only supported type of JOIN.
  • When a simple format for a name of a table is not used in FROM or when anything follows after a name of a table, e.g. functions, subquery, partition_extension_clause, PIVOT, UNPIVOT, DBLINK, flashback_query_clause, and row_pattern_clause.
  • When “WITH common_table_expression”, UNION, EXCEPT, INTERSECT, MINUS, model_clause, and hierarchical_query_clause are used in view.
  • When another definition exists between ORDER BY and the end of view, e.g. FOR clause in SQL Server.
Related Documents