Documentation 7.0
Aqua Data Studio 7.0
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 Character set and Internationalization
2. Server Registration
    2.1 Supported RDBMS Servers in ADS 7.0
    2.2 How to Register a Server in ADS 7.0
    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.0
    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.0
    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.0
    8.1 Using the Query Builder
9. Charting Tool in ADS 7.0
    9.1 Invoking Charting Tools in ADS 7.0
    9.2 Working with Grids
    9.3 Working with Pivot Grids
    9.4 Advanced Features of Charting Tools
    9.5 Sample Charting Demo
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.0
    12.1 How to Import Data using ADS 7.0
    12.2 How to Export Data using ADS 7.0
    12.3 Generate SQL Scripts using ADS 7.0
    12.4 Table Data Editor
    12.5 Server Script Generator
    12.6 Using Object Search in ADS 7.0
    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
16. SQL Debugger
    16.1 Features of ADS 7.0 Debuggers
    16.1.1 Oracle Debugger
    16.1.2 DB2 Debugger
    16.1.3 MS SQL Debugger
    16.1.4 Sybase Debugger
17. ER Modeler in ADS 7.0
    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.0
    18.1 Using Subversion Repository
    18.2 Using CVS Repository
    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.0
    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.0
    21.1.1 SQL Editor
    21.1.2 HTML Editor
    21.1.3 XML Editor
    21.1.4 Text Editor
    21.1.5 Regular Expressions
    21.2 Image Viewer
22. Application Workspace and Options
    22.1 Menus and Toolbar
    22.2 Shorcuts
    22.3 Schema and Script Browser
    22.4 Details View
23. Aqua Data Studio 7.0 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
24. Aqua Data Studio Technical Support
    24.1 Error Logging

12.4 Table Data Editor

Tools - Table Data Editor
 
Table Editor - Aqua Data Studio provides a Table Editor which allows a user to graphically edit the resultset of an executed query.

To activate a table editor you must write a single-table SELECT statement and use the "Execute Edit" button. This will execute the query and return the resultset in a new Table Editor window. From this window a user may edit and save the contents of the resultset.

The editor uses the primary key or any unique constraint to identify the row in the result which it will generate UPDATE statements for. If your resultset doesn’t have a primary key or unique constraint, you will be prompted to define a primary key in the primary key tab.

There is now an option within File->Options->Permissions to allow Primary Key Definition Changes.

  • "Edit in window" option has an extra tab that provides an editor which wraps the text so the user may edit in a regular or a wrapped text mode.
  • "Save SQL" stores the chosen directory path and uses it for subsequent save operations as a default directory for easier navigation
  • Preview panel: The preview panel creates a cells preview at the bottom split panel to allow the user to preview the currently selected value in the grid. This allows the user to easily see the full value, including long string values or CLOB values.
  • Status Bar has "Total Rows:" information at the bottom right to show the number of rows in the table.
  • After the changes are saved and the table is refreshed (Save and Refresh), the cursor selects the first cell of the selected row before save.
  • Edit->Format: AutoFit Column Width - Cells can be highlighted and resized automatically using the menu, a key shortcut, or a double-click on the right border of the column header. This option can be cofigured from the dropdown menu.
  • Edit->Next Tab: Move to next tab; Edit->Previous Tab: Move to previous tab; Edito->Focus Max Results: Move focus to the max results.
  • File->Options:General: Moved Table Data Editor options to Table Data Editor section.
  • When closing a modified window the application will prompt for "Save," "Discard" and "Cancel."
Visual Editing - The editor allows you to add, edit and delete rows. The changes in the editor are color coded so that you may see your changes before commiting them. Inserted/Modified/Deleted rows have light blue cell background. Modified cells have a slightly darker color for the text so it allows the user to see spaces. Cells in Inserted Rows also have the background color of the text shaded to identify invisible characters.
  • Entering a string value with length longer then the datatype can handle will notify the user of a possibility for truncation.
  • Editing a cell with a key stroke will clear the cell and start the cell value from the key typed. Editing the cell with a mouse double click will edit the cell but will leave the old value.
  • Edit->Clone Selected Rows - Clones the selected rows. This option can also be accessed from the dropdown menu.
  • Edit->Insert Current Date Only: Inserts the current date, and a time of 12:00 p.m. if the date type is a timestamp. This option can also be accessed from the dropdown menu.
  • DateTime columns: If the user enters or pastes a date or datetime in a different format then the default locale, ADS will make a conversion. Example: 8/9/06 will be converted to 08/09/2006 12:00:00 AM
  • Fill Functionality as Edit->Fill Down and Edit->Fill Right: Fills currently selected cells in the chosen direction with the first selected cell content. This option can also be accessed from the dropdown menu.
  • "Paste" now pastes the value from the clipboard into all the selected cells.
  • A user can copy a row and then paste it into an empty row. Select row, press CTRL-C, then select another row and press CTRL-V.
  • A user can copy x number of rows and paste into the last empty row and the necessary number of rows will be created.
  • Pasting into a cell from a spreadsheet:
    • Pasting into a cell in edit mode will trim carriage return ("/r")
    • If a user copies one cell from a spreadsheet and pastes it into a single cell of the Table Data Editor it will paste the value without trailing carriage returns and line feeds.
    • If the user copies one cell from a spreadsheet and paste it into a number of selected cells, the Table Data Editor will paste the single cell into each individual cell.
    • If the user copies a block of cells from a spreadsheet then the Table Data Editor will paste the block into the corresponding cells starting from the leading selected cell; whether a single cell or multiple cells are selected does not change the functionality.
Saving changes - Before saving you may clear any part of your changes. You may also preview the changes that will be made in the ’Preview SQL’ tab window, or save the SQL statements for the changes to a file.
  • If no results are returned, an error message is displayed.
  • Warnings are displayed when warnings are returned.
  • If a statement is executed that doesn’t make any modifications, the transaction is still commited. Example: Deleting a row which has already been deleted by a different user.
  • The table data editor is now threaded, and there is a status bar at the bottom that displays the status of execution. Including in the status bar is the number of statements to be executed and on which execution it is on. The toolbar has a cancel button so that the user may cancel the execution at any given time.
  • If Save is cancelled while being executed, the status bar displays the total number of statements executed before the cancel.
  • Transaction Handling:
    File->Options:Table Data Editor: Added section for Table Data Editor Options.
    • Transactions: Transaction Type: {Full, Batch, Threshold} :
      • Full: A "Full" transaction type causes all changes to be made in one transaction. This is the default.
      • Batch: A "Batch" transaction type will batch all the statements to be executed into batches with an X number of statements per batch. Each batch will be commited independently. If a commit fails, the execution will stop and rollback the current transaction batch, but it will not be able to rollback the previosly executed transaction batches.
      • Threshold: A "Threshold" transaction batch executes the statements in order and checks the amount of time ellapsed after each executed statement since the beginning of the batch. If the time ellapsed has reached the threshold time, the current transaction will be committed, and a new transaction will be started. This will allow the statements to be batched in separate transactions based on a time Threshold.
      • Batch Size: Number of statements per transaction batch [For Transaction Type: Batch].
      • Threshold: Number of milliseconds ellapsed to trigger a transaction batch commit [For Transaction Type: Threshold].
      • Wait Time: Amount of time to wait between transactions [For all Transactions].
    • Transaction Log Monitor [Sybase ASE]: This will allow ADS to queue editor modifications for Sybase ASE if the Transaction Log percentage hits a certain Threshold which allows the server to process the current transactions before receiving requests from ADS.
      • Log Used Threshold: Percentage of transaction log used that would trigger a transaction to wait.
      • Log Used Wait Time: Time to wait if a transaction log used threshold is triggered.
Find/Replace Options - Allows Find/Replace customization
  • Edit->Find: Finds the first occurence of the text in the grid values starting from the current position and using the specified direction for search.
  • Edit->Find Next: Find the next occurance of the last find.
  • Edit->Find Previous: Find the previous occurance of the last find.
  • Edit->Replace: Finds and replaces a string occurence(s) by a specified string; if it replaces all of the occurences in the table, it shows how many have been replaced.
  • String matching options for Find and Replace: "match case", "match entire cell" and "match whole words."
Hot Keys
  • Quick Selection - Ctrl-Shift-R and Ctrl-Shift-K (by default) selects all the rows or columns respectively that have cells that are currently selected.
  • Default Key Binding for Delete Row is Ctrl-Delete, for Clear Changes is Ctrl-Alt-Z and for Clear Cell Changes is Ctrl-Alt-Y.
  • Key "Edit" will overwrite, F2 will put in edit mode with text highlighted and mouse double click will put in edit without highlight.
  • DELETE Key: sets to NULL all the selected cells.
  • CTRL-D Key: deletes the row.

Table Data Editor Features

  • Sortable Columns: To sort by a certain column a user can click on that particular column. The first click will sort in ascending order, the second in descending order and the third will unsort the column values. Simultaneous multiple column sorting is available if the user keeps the Ctrl key pressed.
  • Filterable Rows: Quick filter field is available at the top right corner to help the user to filter and view desired column values. If the user clears changes which were in the filter so that the rows are no longer in the filter, the view stays the same for user convenience until a new filter is applied.
  • Multi-Table Editing: Table Data Editor allows the user to insert an empty row before and after any row in the table. Cloned rows are inserted directly after the row being cloned.
    Limitations
    1. Columns with the same name belonging to different tables are not editable because the table they belong to cannot be identified.
    2. Insert, clone and delete row operations are not available in the multitable mode as they can’t distinguish between the tables.
  • Insert Row Before & After: Table Data Editor allows the user to insert an empty row before and after any row in the table. Cloned rows are inserted directly after the row being cloned. If the corresponding columns are sorted, the view stays the same until new sorting is applied.
  • Status Bar: If data loading takes an extended period of time, a progress bar pops up to show that the operation is in progress.
  • Option to save queries to SQL History: This option can be enabled/disabled in File->Options[Table Editor]. When the option is enabled, queries generated in Table Data Editor are saved to SQL History after being executed and commited. With the Full (default) transaction type all of the queries are saved as one entry, otherwise queries are saved by batches being commited. If a query or a batch fails, including the case when a user cancels it, further queries are not executed and not saved.

Table Data Editor Enhancements

  • Modification Logs: A log of all modifications to tables is stored as a .xls document. An option in File->Options->Table Editor->Modification Logs sets where these logs are kept. This option allows the saving of modifications made in the Table Data Editor to Excel spreadsheets containing the old data and new data so user know what was modified. The resulting files follow this naming convention:
    year-M/d-HHmmss-SSS-connection-user.xls
    Example:
    2008-0523-093109-552-MySQL51_local-root.xls
    The resulting document shows Modifications on the first sheet and Original Data on the next. Row coloring and bolding indicate the changes made.
  • Assign Table Column: Tables in Assign Table column dialog and in Select Delete Participants dialog are now sortable.