AquaFold
HOME SCREENSHOTS DOWNLOAD DOCUMENTATION SUPPORT LICENSING CONTACT
 

Documentation: Aqua Data Studio 6.5 - New Features     HTML Documentation download, ZIP: ads-docs.zip (Size: 84.7MB) / ads-docs-no-shots.zip (Size: 1.2MB)
  Getting Started
  Installation
  JDBC Drivers
   Oracle 8i
   Oracle 9i
   Oracle 10g
   DB2 7.2
   DB2 8.1
   DB2 9.0
   SQL Server
   Sybase ASE
   Sybase Anywhere
   Sybase IQ
   Informix
   PostgreSQL
   MySQL
  Memory Configuration
  Character sets
  Registering Servers
   MSDE 2000
   SQL Express 2005
   PostgreSQL SSL
  Application
   Application Menus
   Application Toolbar
   Browser and Scripting
   Visual Editing
   SQL History and Archive
   Shortcut Toolbar
   Key Mappings
   Key Mapping Assistant
   Custom Keymap Profiles
   Options
   Settings
   New Frame Window
   Details View
   Command Line
  Query Window
   Basics
   Toolbar
   Server Side Comments
   SQL Automation
   Aqua Commands
   Morph to Delimited List
   Results
   Save Results
   Auto-completion
   Popup Menu
   SQL Formatter
   Permissions
   Parameterized
   Pivot Results (Grid and Chart)
   Grid Results (Grid and Chart)
  Editors
   SQL Editor
   Text Editor
   HTML Editor
   XML Editor
   Regular Expressions
  Image Viewer
  Visual Explain Plan
   Basics
   Explain Plan
   Explain Diagram
   Whiteboard
  Procedure/Package Editor
  SQL Debugger
   Sybase Debugger
   Oracle Debugger
  Tools
   Table Data Editor
   Schema Script Generator
   Server Script Generator
   ER Diagram
   Query Builder
   Import Tool
   Export Tool
   Execution Monitor
   Object Search
  Compare Tools
   Schema Compare
   Tab Compare
   Directory Compare
   File Compare
   Copy History Compare
   Results Compare
  Oracle DBA Tools
   Instance Manager
   Storage Manager
   Rollback Manager
   Log Manager
   Security Manager
   Session Manager
   SGA Manager
   Server Statistics
  SQL Server DBA Tools
   Instance Manager
   Storage Manager
   Security Manager
   Session Manager
   SQL Agent Manager
  Sybase DBA Tools
   Instance Manager
   Storage Manager
   Security Manager
   Session Manager
  Source Control
   Subversion
   CVS

Application - Command Line

SQL scripts may be executed from the commandline without launching the Aqua Data Studio GUI. This allows scheduling the execution of scripts from an OS scheduler such as a Unix cron job or with Windows Task Scheduler. There are two files in the root install directory called "runscript.sh/bat" and "runscript-bundled.sh/bat".

An example of what you can do with this:

Every morning a cron job runs a script that queries for a set of data, lays out pivot or graph information, saves it to file and then emails the file to a set of people.

 

These are examples of how to run a script from the command line. If you type "runscript" from within the root install directory the usage will display, which follows.

Windows
Usage:

runscript.bat "-cMy Connection" "-fc:\myscript.sql" "-oc:\myscript-out.txt" "-uusername" "-m100" "-htrue"

- connection [-c] - [required] Identifies the connection name.
- filename [-f] - [required] File name of the script to execute.
- output file [-o] - [optional] File name for the text output. Standard out is used if not defined.
- username [-u] - [optional] Username to use for login. If not indicated, then the saved username will be used.
- password [-p] - [optional] Password to use for login. If not indicated, then the saved password will be used.
- maxResults [-m] - [optional] Max Results in any given query resultset.
- binaryToHex [-h] - [optional] true/false in option to convert hex to binary.

Example:
runscript.bat "-cSQL Server 2000" "-fc:\\scheduled-pivotgrid.sql"

Linux
Usage:

runscript.sh "-cMy Connection" "-fc:\myscript.sql" "-oc:\myscript-out.txt" "-uusername" "-m100" "-htrue"

- connection [-c] - [required] Identifies the connection name.
- filename [-f] - [required] File name of the script to execute.
- output file [-o] - [optional] File name for the text output. Standard out is used if not defined.
- username [-u] - [optional] Username to use for login. If not indicated, then the saved username will be used.
- password [-p] - [optional] Password to use for login. If not indicated, then the saved password will be used.
- maxResults [-m] - [optional] Max Results in any given query resultset.
- binaryToHex [-h] - [optional] true/false in option to convert hex to binary.

Example:
./runscript.sh "-cSQL Server 2000 - 69" "-f/Users/mrcurrentuserman/Documents/scheduled-pivotgrid.sql"

OS X
Usage:

runscript.sh "-cMy Connection" "-fc:\myscript.sql" "-oc:\myscript-out.txt" "-uusername" "-m100" "-htrue"

- connection [-c] - [required] Identifies the connection name.
- filename [-f] - [required] File name of the script to execute.
- output file [-o] - [optional] File name for the text output. Standard out is used if not defined.
- username [-u] - [optional] Username to use for login. If not indicated, then the saved username will be used.
- password [-p] - [optional] Password to use for login. If not indicated, then the saved password will be used.
- maxResults [-m] - [optional] Max Results in any given query resultset.
- binaryToHex [-h] - [optional] true/false in option to convert hex to binary.

Example:
./runscript.sh "-cSQL Server 2000 - 69" "-f/Users/jonathanpowers/Documents/scheduled-pivotgrid.sql"

 

Within OS X it is possible to create an iCal alarm event which is an Apple Script. This Apple Script can contain a wrapper for a shell that runs the runscript.sh.


Key Assist
OS X Command Line
Home Screenshots Downloads Documentation Support Licensing Contact Copyright© 2001-2007 AquaFold, Inc. All Rights Reserved