You can execute command files in any of the following ways:
To run a command file immediately
In Interactive SQL, choose File » Run Script.
Locate the file, and click Open.
The contents of the specified file are run immediately. A Status window appears to show the execution progress.
The Run Script menu item is the equivalent of a READ statement. See below for an example of the READ statement.
To run a command file using the Interactive SQL READ statement
In the SQL Statements pane, type the following command:
READ 'c:\\filename.sql'; |
In this statement, c:\filename.sql is the path, name, and extension of the file. Single quotation marks (as shown) are required only if the path contains spaces.
For more information, see READ statement [Interactive SQL].
To load commands from a file into the SQL Statements pane
Choose File » Open.
Locate the file, and click Open.
The commands are displayed in the SQL Statements pane where you read, edit, or execute them.
On Windows platforms you can make Interactive SQL the default editor for .sql command files. This lets you double-click the file so that its contents appears in the SQL Statements pane of Interactive SQL. See Setting Interactive SQL as the default editor for .sql files.
See Using favorites.
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |