Documentation 8.0
Aqua Data Studio 8.0
Supported RDBMS Servers
1. Installation
    1.1 Minimum Requirements
    1.2 Installing Aqua Data Studio in Windows OS
    1.3 Installing Aqua Data Studio in Linux OS
    1.4 Installing Aqua Data Studio in Mac OS
    1.5 Launcher & Memory Configuration
    1.6 Interface Language, Fonts & Character sets
    1.7 Charts and OpenGL/JOGL Configuration
    1.8 Application Logs & Support Information
    1.9 Configuration & Connection files
2. Registering a Database Server
    2.1 Oracle
    2.2 Oracle OCI
    2.3 DB2 iSeries
    2.4 DB2 LUW
    2.5 DB2 zOS
    2.6 MS SQL Server
    2.7 Sybase ASE
    2.8 Sybase Anywhere
    2.9 Sybase IQ
    2.10 Informix
    2.11 Teradata
    2.12 Aster nCluster
    2.13 MySQL
    2.14 PostgreSQL
    2.15 Apache Derby
    2.16 Generic JDBC
    2.17 Generic ODBC
3. JDBC Driver Configuration
    3.1 Oracle 8i JDBC Drivers
    3.2 Oracle 9i JDBC Drivers
    3.3 Oracle 10g JDBC Drivers
    3.4 Oracle 11g JDBC Drivers
    3.5 DB2 iSeries JDBC Drivers
    3.6 DB2 z/OS JDBC Drivers
    3.7 DB2 LUW 7.2 JDBC Drivers
    3.8 DB2 LUW 8.1 and DB2 UDB 8.2
    3.9 DB2 LUW 9.0 and DB2 UDB 9.5
    3.10 SQL Server JDBC Drivers
    3.11 Sybase ASE JDBC Drivers
    3.12 Sybase Anywhere JDBC Drivers
    3.13 Sybase IQ JDBC Drivers
    3.14 Informix JDBC Drivers
    3.15 Teradata JDBC Drivers
    3.16 Aster nCluster Drivers
    3.17 PostgreSQL JDBC Drivers
    3.18 MySQL JDBC Drivers
    3.19 Apache Derby JDBC Drivers
    3.20 SQLite JDBC Drivers
    3.21 Firebird JDBC Drivers
4. Workspace and Docking Framework
    4.1 Menus and Toolbar
    4.2 Shortcuts Toolbar
    4.3 Schema Browser
    4.4 Scripts Browser
    4.5 Details View
5. Query Analyzer - SQL Tool in ADS
    5.1 Invoking the Query Analyzer (CTRL+Q)
    5.2 Using the Query Analyzer
    5.3 Query Analyzer and its Environment
    5.4 Server Side Comments
    5.5 Parameterized Scripts
    5.6 Displaying Results of Queries
    5.7 Saving Query Results
    5.8 Tips and Tricks
    5.9. SQL Automation
        5.9.1 Insert, Update, Select
        5.9.2 Introduce Columns and Value Stubs
        5.9.3 Morph to Delimited List
        5.9.4 Formatting Statements
        5.9.5 Auto Completion
        5.9.6 Aqua Commands
    5.10. Charting Grids and Pivot Grids
        5.10.1 Working with Grids and Pivot Grids
        5.10.2 Working with Enhanced Charts
        5.10.3 Scripting Charts
        5.10.4 Chart Options
        5.10.5 Function Series
    5.11. Visual Explain Plan
        5.11.1 Using Explain Diagrams
        5.11.2 Sample Query Tuning Demo
6. SQL History (CTRL+ ALT+H)
7. Query Builder Tool in ADS
    7.1 Building Queries
    7.2 Workspace Reference
8. GUI Tools for Database Objects
    8.1 Creating Databases
    8.2 Creating Tables
    8.3 Creating Constraints
    8.4 Creating Indexes
    8.5 Creating Views & Triggers
    8.6 Creating Aliases & Synonyms
    8.7 Creating Storage Objects
    8.8 Multi Scripting Objects
9. Tools and Features
    9.1 How to Import Data using ADS
    9.2 How to Export Data using ADS
    9.3 Generate SQL Scripts using ADS
    9.4 Table Data Editor
    9.5 Server Script Generator
    9.6 Using Object Search in ADS
    9.7 Comparing two Database Schemas
    9.8 Using the Visual Explain White Board
    9.9 Using the Execution Monitor
    9.10 Generating ER Diagrams
10. Procedure, Function & Package Editor
11. SQL Debugger
    11.1.1 Oracle Debugger
    11.1.2 DB2 Debugger
    11.1.3 MS SQL Debugger
    11.1.4 Sybase Debugger
12. ER Modeler in ADS
    12.1 Notation and Normalization
    12.2 Creating Tables
    12.3 Creating Indexes
    12.4 Creating Constraints
    12.5 Creating Relationships & Subcategories
    12.6 Adding Notes and Regions
    12.7 Saving and Exporting an ER Model
    12.8 Forward Engineering
    12.9 Reverse Engineering
    12.10 ER Modeler Demo
    12.11 Converting ER Models DB to DB
13. Version Control in ADS
    13.1 Using a Subversion Repository
    13.2 Using a CVS Repository
    13.3 File Search in Version Control
14. Database Administrator Tools
    14.1 ORACLE DBA Tools
        14.1.1 Server Statistics
         14.1.2 Rollback Manager
         14.1.3 Log Manager
         14.1.4 Session Manager
         14.1.5 Instance Manager
         14.1.6 Storage Manager
         14.1.7 Security Manager
         14.1.8 SGA Manager
    14.2 SQL SERVER DBA Tools
        14.2.1 Instance Manager
        14.2.2 Session Manager
        14.2.3 Security Manager
        14.2.4 Storage Manager
        14.2.5 SQL Agent Manager
    14.3 SYBASE DBA Tools
        14.3.1 Instance Manager
        14.3.2 Session Manager
        14.3.3 Security Manager
        14.3.4 Storage Manager
    14.4 MySQL DBA Tools
        14.4.1 Instance Manager
        14.4.2 Session Manager
        14.4.3 Storage Manager
        14.4.4 Security Manager
    14.5 DB2 for LUW DBA Tools
        14.5.1 Instance Manager
        14.5.2 Session Manager
        14.5.3 Storage Manager
        14.5.4 Security Manager
15. Compare Tools in ADS
    15.1 File Compare
    15.2 Results Compare
    15.3 Directory Compare
    15.4 Tab Compare
    15.5 Schema Compare
    15.6 Copy History Compare
16. Editors & Viewers
17. Aqua Data Studio OPTIONS
    17.1 General Options
    17.2 Editor Options
    17.3 Compare and Results Options
    17.4 Query Analyzer Options
    17.5 Scripts and Results Options
    17.6 Visual Explain Options
    17.7 Formatter Options
    17.8 Permissions and Registration Options
    17.9 Key Mapping Options and Key Assist Tool
    17.10 Command line

8.2 Creating Tables

Aqua Data Studio contains GUI tools for visually editing and creating Tables.

CREATE

Creating tables through the GUI Tools available in the schema browser begins with opening a database server connection and expanding the tree to view the server's tables. Right clicking on the schema container for Tables generates the pop-up menu containing "Create Table" as its first item.

The Create Table dialog has General, Constraints, Storage and Preview SQL tabs across the top. The General tab is where the table is named and its columns and datatypes are set. The Column information displays more details about the selected columns in the descriptin area below the column grid. INSERT and DELETE of columns is available via right click on the Column Names within the General tab of CREATE and ALTER dialogs. All of the datatypes available to the current database can be accessed with a dropdown next to the column names.

The Constraints tab allows selection of columns for use in constraint creation (including Primary Key) and check conditions. Constraint properties details such as Name, Type, Ref Schema, Ref Table and Check Condition are modifiable visually.  Constraint Definition Table Columns and Referenced Columns can be visually edited. For more on constraints, see the Creating Constraints page.

The Storage tab provides details on Tablespace and table storage, its content vary depending on server vendor and version.

The Comments tab provides space for text comments that will be stored with the table in the database.

The Preview SQL tab displays the DDL used to generate the table and its properties based on the settings of the other tabs.

Below are the steps used to create a table in DB2 9.5. Because other databases may not have dimensions, steps 6 and 7 may not be needed.

1. Connect to Server 2. Right Click on Tables 3. Set General Properties 4. Create Constraints 5. Set Storage Properties 6. Create Dimensions 7. Dimension Summary
 1. Connect to
Server
2. Right Click on
Tables
3. Set General
Properties
4. Create
Constraints
5. Set Storage
Properties
6. Create
Dimensions
7. Dimension
Summary

 

8. Add Comments 9. Preview SQL
8. Add Comments 9. Preview SQL

Once a table has been created, it is possible to use Aqua Data Studio's Visual Editing Tools to alter its properties.

ALTER

Altering tables through the GUI is also done with a right click menu on table objects in the schema browser. Right clicking on a table object opens the same popup menu as above, but to ALTER a table, select the second item in the list, "Alter Table".

The resulting Alter Table window contains General, Constraints, Storage, Permissions and Preview SQL tabs across the top.

Within the General tab, the table name, column names, datatypes and allow nulls can be changed. The Column information is sortable, expandable and displays more details about the selected columns. INSERT and DELETE of columns is available via right click on the Column Names within the General tab of CREATE and ALTER dialogs. The database and schema cannot be changed, and remain grayed out. Columns can be added (INSERT), deleted (DELETE) and changed (ALTER).

Constraints and check conditions can be altered in the Constraints tab. Constraint properties details such as Name, Type, Ref Schema, Ref Table and Check Condition are modifiable visually.  Constraint Definition Table Columns and Referenced Columns can be visually edited Storage information, just as above, can be altered in the Storage tab.

The Storage tab provides details on Tablespace and table storage, its content vary depending on server vendor and version.

Table Permissions (when privileges to do so have been granted to the current user in the server registration Permissions tab) can be altered and granted on the Permissions tab for column and command. Full grant options are available and all Permissions can be set by Grantee Type for Users, Groups or  Roles depending on database vendor and type. Grant, Grant with Grant Option, Add Grant, Add Grant with Grant Option, and Revoke are available for SELECT, INSERT, UPDATE, DELETE across all databases. Depending on vendor supported functionality, there are other permissions which may be set such as ALTER, INDEX, References, On Commit Refresh, Query ReWrite  The "Columns..." button at the bottom right of the Permissions tab, allows further permissions changes, including SELECT, INSERT, UPDATE,  and References for the columns highlighted in the permissions grid within the Permissions tab. 

The Preview SQL tab displays the DDL used to alter the table based on the properties set within the other tabs.

Below are the steps to alter a table.

1. Right Click Alter Table 2. Select Columns to Alter 3. Alter Column Properties 4. Alter Permissions 5. Alter Permissions Altered 6. Alter Permissions Column Permissions 7. Preview SQL
1. Right Click
Alter Table
2. Select Columns
to Alter
3. Alter Column
Properties
4. Alter Permissions
Selected
5. Alter Permissions
Altered
6. Alter Permissions
Column Permissions
7. Preview SQL

 

DROP

A right click on an existing table in the schema browser allows a table to be dropped.