Collection Contents Index The Initialization utility The Log Transfer Manager pdf/chap4.pdf

Reference Manual
   CHAPTER 4. Database Administration Utilities     

The Interactive SQL utility


Syntax 

dbisql [ switches ] [ dbisql-command | command-file ]

Windows 3.x
syntax 

dbisqlw [ switches ] [ dbisql-command | command-file ]

Switch

Description

-c "keyword=value; ..."

Supply database connection parameters

-d delimiter

Specify command delimiter

-q

Quiet mode—no windows or messages

-x

Syntax check only—no commands executed

Description 

Interactive SQL provides the user with an interactive environment for database browsing and for sending SQL statements to the database server.

Interactive SQL allows you to type SQL commands, or run command files. It also provides feedback about the number of rows affected, the time required for each command, the execution plan of queries, and any error messages.

If dbisql-command is specified, Interactive SQL executes the command. You can also specify a command file name. If no dbisql-command is specified, SQL enters interactive mode, where you can type a command into a command window.

The Windows 3.x executable name is dbisqlw. You can set up Program Manager icons to start dbisqlw with the same command line syntax as specified above.

Switches 

-c "keyword=value; ..."     Specify connection parameters. See Connection parameters for a description of the connection parameters. If this option is not specified, the environment variable SQLCONNECT is used. If required connection parameters are not specified, you are presented with a dialog where you can enter the connection parameters.

-d     Specify a command delimiter. By default, the delimiter is the semi-colon.

-q     Operate quietly. Interactive SQL does not display any information on the screen. This is useful only if you start Interactive SQL with a command or command file.

-x     Scan commands but do not execute them. This is useful for checking long command files for syntax errors.

For Info     For or detailed descriptions of SQL statements and Interactive SQL commands, see SQL Language Elements.

Examples 

Top of page  Starting Interactive SQL from Sybase Central

You can start Interactive SQL from Sybase Central in the following ways:

Top of page  

Collection Contents Index The Initialization utility The Log Transfer Manager pdf/chap4.pdf