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

5.10.1 Working with Grids and Pivot Grids

Grids, Grid Charts, Pivot Grids and Pivot Grid Charts are available through the Query Analyzer Window as tabs (when enabled in the Main Application Toolbar) for any queries run on any database Aqua Data Studio can connect to. Grid Results are the most common method of desplaying query results, and they are also the recommended method of displaying large results sets (100,000 rows or more) as memory consumption for them have been highly optimized. Other features of the Grids Results include sorting, column rearrangement, quickfiltering displayed results, aggregate functions on selected cells, Script to Window for AquaCommands, Save As, View in Excel Viewer, Grid Printing and Charting.

Grid results displays data from tables and queries within a grid that can be sorted and rearranged. Column data can be Sorted in descending or ascending order by left clicking on column headers. If the Control key (CTRL) is depressed during sorting, multiple columns can be sorted in sequence. Resorting columns also changes how the chart displays.

1. Click on Header 2. Rows Sort Ascending or Descending 3. Control Click to multiple Column sort
1. Click on Header 2. Rows Sort
Ascending or
Descending
3. Control Click
to multiple Column
sort

Columns can be Rearranged left to right by dragging their column headers from one location to another. Resorting columns also changes how the chart displays.

1. Drag Column Header 2. Release Column header to Rearrange
1. Drag Column
Header
2. Release Column
header to Rearrange

Quickfilter - There is a Quickfilter on the upper right corner of grid with which you use to can focus on a particular field and display only those results with matching text or wildcards. To the left of the filter numbers (2/15) indicate number displayed out of the total number of query results. When you type in the quick filter, an "X" appears at the end of the filter that erases the text entered when it is clicked on. You can also produce a chart of the filtered data the same way that you produced a chart of the whole block of information. Any charts associated with the results of the query change dynamically based on the filtered results, as shown below. The Quickfilter is also available to narrow down the Fields displaying in the Fields List within Pivot Grid Results.

1. Before Filtering 2. Typing Quickfilters results
1. Before Filtering 2. Typing
Quickfilters results

Aggregate Functions - Aggregate Functions allow users to calculate Count, Count Numbers, Sum, Min, Max, Average, and Standard Deviation functions on selected cells in the grid data. Once data has been highlighted in the grid, right click on the Aggregate Functions button at the top right of the grid. Choose the desired function and its results are displayed within the button itself. If the Grid Results Pane is too narrow, the Aggregate functions may collapse into an expandable box adjacent the quickfilter input form. Clicking on the collapsed box displays its contents in an overlay at the top of the grid results. Pivot Grids Results also allow Aggregate Functions on selected data.


Select Data, Choose Aggregate Functions
Select Data, Choose
Aggregate Functions

The Script to Window menu option automatically generates Aqua Commands for the pivot grid/pivot chart for exporting by right clicking within the grid view. This generated Aqua Command will include all of the settings of the grid/graph display. If these settings are stored with a query as a file, users can reexecute and generate the same grids and graphs again as many times as needed, and as data changes the chart dynamically changes with each reexecution of the query. Pivot Grids Results also have the Script to Window feature for generating Aqua Commands scripts.

1. Right Click select Script to Window 2. View resulting Aqua Commands
1. Right Click
select Script to
Window
2. View resulting
Aqua Commands

After generating a script, using "Save As" from within the query toolbar makes it possible to save the query and Aqua Commands together in a shared file or directory so that multiple users of Aqua Data Studio can access the layout and results.

Save As Aqua Commands script
Save As Aqua
Commands script

Selecting View in Excel Viewer  after selecting cells and right clicking displays selected data from the grid in Excel or Excel Viewer such as Open Office.

1. Select grid data
2. Right click select Excel Viewer
1. Select grid data 2. Right click
select Excel Viewer

Right clicking within a grid and selecting Print allows printing of grid results alone. The Print Preview displays margin, page orientation and individual page previews for each page printed if the grid is wider than a single page width.

ADS Printing Options
ADS Printing Options

Grid and Grid Chart Process

Below is a step by step example of generating Grid Results and then creating charts from those results.

1. Open the Query 2. Execute a Query 3. Open Grid tab click Show Chart 4. Chart Display Area opens 5. Select Category in Display Area 6. Select Series in Display Area
1. Open the Query
Analyzer
2. Execute a Query
3. Open Grid tab
click Show Chart
4. Chart Display
Area opens
5. Select Category
in Display Area
6. Select Series
in Display Area

 

7. Set Chart Options 8. Maximize Chart View 9. Stacked Area Chart 10. Chart Types 11. Column Chart 12. Chart Views
7. Set Chart
Options
8. Maximize Chart
View
9. Stacked Area
Chart
10. Chart Types 11. Column Chart 12. Chart Views

 

13. Series View 14. Save Chart as Image 15. Script the Chart to Window 16. Save and Share the Chart
13. Series View 14. Save Chart
as Image
15. Script the Chart
to Window
16. Save and
Share the Chart

1. Connect to the Database Server and Open a Query Analyzer.

2. Type in the Query for which you want to view the Charts, in the Query Analyzer and Execute the Query.

3. Click on Grid Tab. To enable the Chart View Click on Show Charts Icon near records(s) [Fetch MetaData: /ms] [Fetch Data: /ms].

4. The Chart Display Area is blank.

5. Select a Series in the Chart Display Area within the Chart's Toolbar.

6. Select a Category in the Chart Display Area within the Chart's Toolbar.

7. A chart is generated. Select desired Chart Options and Advanced Chart Options such as series color, Legend Display and other options.

8. Maximize the Chart to check if its contents are what is needed. The view can be freely rotated in three dimensions by left clicking and dragging the mouse across the chart. To zoom in and out, hold down shift and left click and drag up and down across the chart. To reposition the chart, Ctrl + drag moves the chart within the view.

9. Change Chart Type if needed by selecting Column Chart, Stacked Chart, Bar Chart, Area Chart, Pie Chart, Line Chart or Surface Chart. The Chart Type can be set per series by clicking on the legend and choosing a different type

10. View the list of Chart Types and swap if needed.

11. The Chart changes immediately upon choosing a new Chart Type.

12. Select a different Chart View, Isometric, Category or Series View.

13. Series View alters the Chart Display to focus on the chart's series.

14. Right click on the Chart and to save it as an Image.

15. You can Script to Window, creating an Aqua Command script as part of the query

16.  Saving this script, with the charting Aqua Command allows sharing of the chart with others who need to run the same query.

Pivot Grid and Pivot Grid Chart Process

Pivot Table concept and Aqua Data Studio's Pivot Grids - Pivot tables, discussed as Pivot Grids within Aqua Data Studio, allow the grouping and summarizing of selected columns and rows of data to obtain a desired report. They are particulary useful with large amounts of data, helping a user to classify data by categories and obtaining summaries without the time consuming search that it would normally take to look through all of the data. For more information on this see Wikipedia article about Pivot Tables.

Pivot Grid configuration is persistent over multiple runs of the same query in the same query panel, i.e., if a user configures a pivot grid and then re-runs the same query, this pivot grid will maintain its configuration. As with the Grid Results, sort  Ascending or Descending after a right click in data sorts it.  Pivot Grids also allow sorting by Data Row Fields names, if for example all of the states of the U.S. were listed under an expandable row tab within the pivot. Sorting of either kind immediately affects the Chart.

Pivot Grid configurations can be saved as XML layouts with a right click within a Pivot and those layouts can be loaded back into existing pivot tables. Saving as XML Layout does not include a Pivot Grid Chart's settings, it is only for the Pivot Grid.A  full discussion of Aqua Data Studio's Charting Features can be found here.

Below is a step by step process for creating Pivot Grids with Charts. 

1. Open Pivot Grid click Show Chart 2. Drag Fields into Row Field 3. Drag Fields into Column Field 4. Select Column Pivot Chart Type 5. Edit Column Fields 6. Stacked Area Pivot Chart selected
1. Open Pivot Grid
click Show Chart
2. Drag Fields
into Row Field
3. Drag Fields
into Column Field

4. Select Column
Pivot Chart Type
5. Edit Column
Fields
6. Stacked Area
Pivot Chart selected

 

7. Review Aqua Command Script 8. View Pivot Grid in Excel Viewer 9. ADS Pivot Grid in Excel 10. Save as Excel<br />Worksheet 11. Script Pivot Grid to Window 12. Pivot Grid Options
7. Review
Aqua Command
Script
8. View Pivot Grid
in Excel Viewer
9. ADS Pivot Grid
in Excel
10. Save as Excel
Worksheet
11. Script Pivot
Grid to Window
12. Pivot Grid
Options

 

13. Pivot Grid Aggregate Functions 14. Save Pivot Grid Chart as Image 15. File saved as SQL with Aqua Commands
13. Pivot Grid
Aggregate Functions
14. Save Pivot Grid
Chart as Image
15. File saved
as SQL with
Aqua Commands

1. Connect to the Database Server and Open a Query Analyzer. Execute the Query. Click on the Pivot Grid Tab and click on Show Chart.

2. Drag Fields from the Fields list on the right into the Row Field area in the Pivot Grid's left side where it displays "Drag Row Fields Here"

3. Drag Fields from the Fields list on the right into the Column Fields area at the top of the pivot Grid where it displays "Drag Column Fields Here".

4. In the Chart display Area, select Column Chart Type. Change Chart Type if needed by selecting Column Chart, Stacked Chart, Bar Chart, Area Chart, Pie Chart, Line Chart or Surface Chart. The Chart Type can be set per series by clicking on the legend and choosing a different type.

5. Edit the Column Fields as needed. CardType is the Column Field and in the drop down, only 2 items from CardType are selected so that the columns are returned on the basis of this filter.

6. Select the Chart Type in the Chart Display Area. The Chart view can be freely rotated in three dimensions by left clicking and dragging the mouse across the chart. To zoom in and out, hold down shift and left click and drag up and down across the chart. To reposition the chart, Ctrl + drag moves the chart within the view.

7. Review the Aqua Commands script this chart would create within the Chart Options Script tab. If this script were shared with Aqua Data Studio users, they would see an identical chart layout. Just like the Grid Results Charts, a right click on the Chart allows saving as an image which can also be emailed.

8. Right click and select View in Excel Viewer to see how the Pivot Grid displays in Excel.

9. View the Pivot Grid viewed within Excel.

10. To save the Pivot Grid and the associated Pivot Grid Chart as an Excel Worksheet, right click in the Pivot and select Save Results or click the Save Results Icon.

11. To generate Aqua Commands to script both the Pivot Grid layout and Pivot Grid Chart, right click in the Pivot Grid and select Script to Window. Saving the Query Analyzer Window contents as a file preserves the layout and settings for later use.

12. Select Pivot Grid Options as needed, any changes take place immediately in the chart. Executing the contents of the Query Analyzer will update the chart and grid with any data that has changed since the previous execution.

13. Aggregate Functions like Sum, Count, Min, Max, Average, Standard Deviation are available for data selected from the Pivot Grid.

14. Just like the Grid Results Charts, a right click on the Chart allows saving as an image.

15. Save the Query and Aqua Commands script for generating the Pivot Grid and Pivot Grid Chart with layout for sharing or reuse.

Pivot Grid in Query Builder results - The Query Builder results also have a tab presenting the results as a pivot grid. The number of pivot grids corresponds to the number of result sets obtained when running the query. The pivot grids are displayed on a multi-level splitpane providing full control over sizes and configurations of each pivot grid. See the Query Builder section for more information. The Pivot Grid within the Query Builder has exactly the same functionality as the Pivot Grid launched from the Query Analyzer.