Command files are text files that contain SQL statements, and are useful if you want to run the same SQL statements repeatedly. You can use Interactive SQL to open, view, run, and save command files.
You can execute command files in any of the following ways from Interactive SQL:
READ temp.sql; |
You load command files into the SQL Statements pane by choosing File » Open. Enter the file name, for example temp.sql, when prompted.
See Running SQL command files in Interactive SQL.
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.
To make Interactive SQL the default editor for .sql files
From Interactive SQL, choose Tools » Options.
The Options window appears.
On the General tab, select the Make Interactive SQL The Default Editor For .SQL Files And Plan Files option.
Click OK.
For more information about using Interactive SQL with command files, see:
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |