Documentation 7.5
Aqua Data Studio 7.5
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 First steps towards Configuring
    1.6 Choose Your Language
    1.7 Character set and Internationalization
2. Server Registration
    2.1 Supported RDBMS Servers in ADS 7.5
    2.2 How to Register a Server in ADS 7.5
    2.3 How to Edit Server Properties
    2.4 How to Copy Server Configurations
    2.5 Troubleshoot Registrations
    2.6 Tips and Tricks
    2.6.1 How to Register a Server Clone
    2.6.2 Tab Coloring to Identify Servers
    2.6.3 Using Filter Options in Registration
    2.6.4 Using Advanced Properties
    2.6.5 Permissions in Server Registration
    2.6.6 Drag and Drop Features
    2.6.7 Navigating with Short cut Keys
    2.6.8 SQL Express 2005
    2.6.9 MSDE 2000
    2.6.10 PostgreSQL SSL
    2.7. JDBC Drivers and Server Registration
        2.7.1 Oracle 8i JDBC Drivers
        2.7.2 Oracle 9i JDBC Drivers
        2.7.3 Oracle 10g JDBC Drivers
        2.7.4 Oracle 11g JDBC Drivers
        2.7.5 DB2 iSeries JDBC Drivers
        2.7.6 DB2 7.2 JDBC Drivers
        2.7.7 DB2 UDB 8.1 and DB2 UDB 8.2
        2.7.8 DB2 UDB 9.0 and DB2 UDB 9.5
        2.7.9 SQL Server JDBC Drivers
        2.7.10 Sybase ASE JDBC Drivers
        2.7.11 Sybase Anywhere JDBC Drivers
        2.7.12 Sybase IQ JDBC Drivers
        2.7.13 Informix JDBC Drivers
        2.7.14 PostgreSQL JDBC Drivers
        2.7.15 MySQL JDBC Drivers
        2.7.16 Apache Derby JDBC Drivers
        2.7.17 SQLite JDBC Driver
        2.7.18 Firebird JDBC Driver
3. Connecting to a Server (CTRL + INSERT)
4. Disconnecting a Server (CTRL + DELETE)
5. Query Analyzer - SQL Tool in ADS 7.5
    5.1 Invoking the Query Analyzer (CTRL+Q)
    5.2 Using the Query Analyzer
    5.3 Query Analyzer and its Environment
    5.4 Using Advanced Properties
    5.5 Parameterized Scripts
    5.6 Displaying Results of Queries
    5.7 Saving Query Results
    5.8 Tips and Tricks
6. SQL History (CTRL+ ALT+H)
7. Automate your SQL scripts using ADS 7.5
    7.1.1 Adding Insert, Update, Delete and Select
    7.1.2 Introduce Columns and Value Stubs
    7.1.3 Comments and Morph to Delimited Text
    7.1.4 Formatting Statements
    7.2 Auto Completion
    7.3 Aqua Commands
8. Query Builder Tool in ADS 7.5
    8.1 Building Queries
    8.2 Workspace Reference
9. Charting Tool in ADS 7.5
    9.1 Working with Grids
    9.2 Working with Pivot Grids
    9.3 Working with new & Enhanced Charts
    9.4 Scripting Charts
    9.5 Chart Options
    9.6 Function Series
    9.7 Chart Gallery
10. SQL Query Tuning - Visual Explain Tools
    10.1 Invoking Execution Plans
    10.2 Using Explain Diagrams
    10.3 Sample Query Tuning Demo
11. GUI Tools for Creating Database Objects
    11.1.1 Creating Tables
    11.1.2 Creating Constraints
    11.1.3 Creating Indexes
    11.1.4 Creating Views and Triggers
    11.1.5 Creating Aliases and Synonyms
    11.1.6 Creating Storage Objects
    11.2 Multi Scripting Objects
12. Tools and Features available in ADS 7.5
    12.1 How to Import Data using ADS 7.5
    12.2 How to Export Data using ADS 7.5
    12.3 Generate SQL Scripts using ADS 7.5
    12.4 Table Data Editor
    12.5 Server Script Generator
    12.6 Using Object Search in ADS 7.5
    12.7 Comparing two Database Schemas
    12.8 Using Explain White Board
    12.9 Using Execution Monitor
    12.10 Generating ER Diagrams
13. Procedure Editor
    13.1 Sample Stored Procedure
14. Function Editor
    14.1 Sample User Defined Function
15. Package Editor
    15.1 Sample Package Editing Demo
16. SQL Debugger
    16.1 Invoking ADS 7.5 SQL Debuggers
    16.2 Features of ADS 7.5 Debuggers
    16.2.1 Oracle Debugger
    16.2.2 DB2 Debugger
    16.2.3 MS SQL Debugger
    16.2.4 Sybase Debugger
    16.3 Debugging Stored Procedure Demo
17. ER Modeler in ADS 7.5
    17.1 Notation and Normalization
    17.2 Working with ER Modeler
    17.2.1 Creating Tables
    17.2.2 Creating Indexes
    17.2.3 Creating Constraints
    17.2.4 Creating Relationships
    17.2.5 Adding Notes and Regions
    17.2.6 Saving an ER Model
    17.3 Forward Engineering
    17.4 Reverse Engineering
    17.5 ER Modeler Demo
18. Version Control in ADS 7.5
    18.1 Using Subversion Repository
    18.2 Using CVS Repository
    18.3 File Search in Version Control
    18.3 Tips and Tricks
19. DBA Corner
    19.1 ORACLE DBA Tools
    19.1.1 Server Statistics
     19.1.2 Rollback Manager
     19.1.3 Log Manager
     19.1.4 Session Manager
     19.1.5 Instance Manager
     19.1.6 Storage Manager
     19.1.7 Security Manager
     19.1.8 SGA Manager
    19.2 SQL SERVER DBA Tools
    19.2.1 Instance Manager
    19.2.2 Session Manager
    19.2.3 Security Manager
    19.2.4 Storage Manager
    19.2.5 SQL Agent Manager
    19.3 SYBASE DBA Tools
    19.3.1 Instance Manager
    19.3.2 Session Manager
    19.3.3 Security Manager
    19.3.4 Storage Manager
    19.4 MySQL DBA Tools
    19.4.1 Instance Manager
    19.4.2 Session Manager
    19.4.3 Storage Manager
    19.4.4 Security Manager
    19.5 DB2 for LUW DBA Tools
    19.5.1 Instance Manager
    19.5.2 Session Manager
    19.5.3 Storage Manager
    19.5.4 Security Manager
20. Compare Tools in ADS 7.5
    20.1 File Compare
    20.2 Results Compare
    20.3 Directory Compare
    20.4 Tab Compare
    20.5 Schema Compare
    20.6 Copy History Compare
21. Editors available in ADS 7.5
    21.1.1 SQL Editor
    21.1.2 Java and JavaScript Editor
    21.1.3 HTML Editor
    21.1.4 XML Editor
    21.1.5 Text Editor
    21.1.6 Regular Expressions
    21.2 Image Viewer
22. Application Workspace and Options
    22.1 Menus and Toolbar
    22.2 Shortcuts
    22.3 Schema and Script Browser
    22.4 Details View
23. Aqua Data Studio 7.5 OPTIONS
    23.1 General Options
    23.2 Editor Options
    23.3 Compare and Results Options
    23.4 Query Analyzer Options
    23.5 Scripts and Results Options
    23.6 Visual Explain Options
    23.7 Formatter Options
    23.8 Permissions and Registration Options
    23.9 Key Mapping Options and Key Assist Tool
    23.10 Settings: Find the application settings
    23.11 Command line
24. Aqua Data Studio Technical Support
    24.1 Error Logging

8.2 Workspace Reference

Query Builder Workspace Diagram
  (click here for a keymapping list for the Query Builder)
1. Creates a new Query Builder Document.
2. Shortcut Toolbar with Shortcut icon (Orders Table): Shortcut Toolbar is an area for adding Table Entity shortcuts. Once a Shortcut is added here, left clicking it creates a Table Entity with that object's initial properties.

The table shortcut toolbar is a very useful item for people who wish to query the same tables often. You can simply right-click on a table object and select the [add shortcut to toolbar] to add that table's shortcut to the toolbar.  Once you have a table shortcut you may right click on that shortcut and change the shortcut properties. For example: if you create many queries on the same tables and wish to always start with them, you could change the properties of their shortcut [Key Binding] to "U" and check the "Clear tables before adding" checkbox. Every time you type U, your current query will be cleared and you will be starting with a new query.  

The shortcut toolbar settings are saved even when Query Builder is closed, so your table shortcut toolbar will still have the quick table reference when you re-open the Query Builder.

3. Opens an existing Query Builder Document.

Loads an existing Query Builder Document (.xqb file) into the Query Builder.  If the current database connection of the Query Builder is not that of the document, Query Builder will load the connection information from the document.  This is the only method to change database connections in the Query Builder without reloading the Query Builder.

4. Saves the current Query Builder Document.

After creating a query you may save it as an .xqb file.  The file contains local refrence pointer information used by Query Builder to discover database and schema information, but does not actually save any database specific information.  So, if you wish to save an .xqb file and reload it on a diffrent computer you will need to make sure that the local reference pointer information is correct.  You may do this by opening the file in a text editor and checking it.   If you only wish to save the sql statement you may "Save sql as".  This will save the sql statement of the object to an .sql file in a text format.  You cannot load a .sql file into the Query Builder.

Save Results:

You may also save the result set of the query to file in many diffrent very useful formats. The encoding and platform can be specified or left as default to the current machine but may also be changed if you plan on sending the file to be used by someone in a different country or operating system.  The results type can be of the following: Grid Results, Pivot Grid Results, Text Results, Client Statististics or Explain Plan; with the following data formats: HTML, Excel, XML, Insert or Delimited

  • Grid results will give you just the data from the sql statement in the chosen format.  Html, Excel, XML and Delimited are basic formats for data display options.  The Insert format is an interesting way of saving the results.  This option can be used to save scripts that would create a new table containing the results as its data or to create scripts that would insert the results into an existing table.  You will need to make sure and specify the schema and table name and type of line execution plan accordingly with the type of database you are working with.  If you do not, the scripts created will not work properly.  

  • Pivot Grid Results works very similar to Grid Results unless you save it to excel.  Saving to excel will also save its pivot grid information if any was created.  

  • Text Results will create a file with the complete server text output. including the sql statement, column headers, query data results, any errors that would accur from the sql or exceptions generate the application. you can uncheck the [ ] include sql statement if you don't wish to have the sql statement saved.  

  • Client Statistics will give you specific statistics on the query run.  Including the count and type of queries executed; rows affected; transactions; time required to execute server and client side; wait times, etc...  

Explain Plan does not currently process anything within the Query Builder.

5. Save As:  Saves the current Query Builder Document with options to relocate, rename and change file type.
6. Save SQL as:  Saves the current Query Builder Document as an SQL text file.
7. Execute:  Runs the SQL statement as created within the SQL pane and displays it to the results pane.
8. Execute Edit:  Runs the SQL statement as created within the SQL pane and returns an editable SQL data grid (the Table Data Editor).  You may learn more by going to the 12.4 Table Data Editor documentation.
9. Cancel:  Will stop an executing sql thread at its current point.
10. Group By:  Adds/Removes Group By column in the Columns Pane

The Group By column allows the user to give grouping information for columns or to apply data aggregate functions to a column.  Data Aggregate functions compute, from a group of rows, a single value for a designated column or expression. This provides the capability to aggregate data, thereby enabling you to perform statistical calculations across many rows with one SQL statement.

11. Add Table:  Opens the add table dialog.
12. Show Diagram Pane:  Shows/Hides the Diagram Pane. The diagram pane holds the visual table objects.  Here you can visually add tables and create joins between tables.
13. Show Columns Pane:  Shows/Hides the Columns Pane.
14. Show SQL Pane:  Shows/Hides the SQL Pane.  The sql pane displays the sql statement as it is been created.  It is for viewing purposes only, you may not modify the sql statement code through this pane.
15. Show Results Pane:  Shows/Hides the Results Pane.
16. Show Datatypes:  Shows/Hides Datatypes within the Columns Pane.
17. Show Indexes: Shows/Hides the Indexes column in the Columns Pane.

The indexes pane holds the information on all the indexes that are associated to the tables associated to the query being built.  On the left side you have the indexes name and parent table with its properties. On the right side you have the columns and sequence to which the index is created.

Indexes are only used when an index's field with leftmost prefix of an index is in the where clause. example:
    multi-column index on field1 and field2
        select * from table where field1 = value1;   the index will be used.
        select * from table where field1 = value1 and field2 = value2;  the index will be used
        select * from table where field2 = value2;  the index will not be used

When scrolling through the indexes, in the columns pane you will see the index and index seq fill with corresponding values.  This will help you visualize the sequence of the index to make sure you are taking advantage of the indexes on tables when creating criteria.

18. Filters: Allows selection of Filters (Quote Identifiers, Fully Qualified Tables, Database Qualified Tables, Auto Join on Foreign Key)
  • Quote Identifiers: This option places database specific identifiers around all fields in the sql statement. This allows for name spacing in tables and fields names. There is no harm in using this option and it is advised to keep it on to insure no sql syntax errors.

  • Fully Qualified Tables: This places table schema information in the sql statement, allowing for multi schema selection and joining of tables.

  • Database Qualified Tables: This option places database information in the sql statement allowing for multi database selection and joining of tables.

  • Auto Join on Foreign Key: This option auto joins tables when there are foreign key associations between the tables when the tables are added.
19. Reconnects to the current database connection if it times out.

Databases can be set up to disconnect idle sessions after an alotted amount of time or the network connection may be lost.  This button provides a fast and easy way to attempt to re-establish your connection to the database if you lose your connection for any reason.

20. Database: List of Databases on the current Database Server. If "Add New Table" is clicked, the database in this drop-down will be used. It allows the user to change the context of the database, so that the user may select tables and views from different databases.
21. Connection Information: Displays information on the current database connection.
22. Table Entity: When Tables are added to the Query Builder, they appear as Table Entities showing their column information.
23. Max Results: Sets the total number of results displayed from an executed query.
24. JOIN icon: Indicates the "=" type of JOIN.
25. JOIN icon indicating all rows from table "Order Details" selected: This "=" JOIN icon indicates a RIGHT OUTER JOIN.
26. The darker shading on the JOIN indicator highlights it to show that it is currently selected, providing different menu items when right clicked than if it had not been selected.
27. Columns Pane: Displays column information on the tables visible in the Diagram Pane.

The column pane is where most of your clauses are created.  When you check fields off in the visual tables they will be placed into rows in the column pane.  Here you will be able to work with the fields in the query to modify your select statement, where clause, group by clause and order by clause. 
In the columns cell you can work with the field itself using functions on the field. 
You can give the field an alias by entering the name in the alias cell. 
The sort type and sort order cells are inner twinded, if you give a sort order you will need to give it a type; it will default to Ascending.
The group by clause is used to either group by or assign an aggregate function to the field. 
The criteria cell is what is used to create the where clause of the sql statement.  If you just wanted to use a fields for the where clause you can uncheck the Output box in the row.  This will remove the field from the select stament.

28. SQL Pane: Displays the formatted SQL of the queries, (read-only text), created by the diagram in the Diagram Pane
29. Indexes Pane (Index Assistant): Shows Index information of the Table Entities from the Diagram Pane.
30. Indexes Pane (Index Assistant - ProductID Index Column Selected): Displays Index of ProductID, with it selected, currently ProductID is listed as sequence 1.
31. Grid Results: This tab displays the results in grid form. Within the Grid Results, charts can be created from the resulting data.
32. Pivot Grid: This tab allows creation of Pivot Grids from the results generated by the script in the SQL Pane. Within the Pivot Grid tab charts of the resulting data can be created.
33. Messages: This tab displays any messages, warnings or errors that appear during query execution.
34. Results Pane: When a query is executed, the results of the query are diplayed here as Grid or Pivot Grid Results with chart creation capability.
35. Results Pane Quick Filter: Following a query execution, the results can be quick filtered to display specific results. The Quick Filter displays results immediately as terms are typed without having to refresh the data.