Starting Interactive SQL

The menu item Open Interactive SQL opens a connection to a server. However, when you select the menu item for a server, Interactive SQL opens a connection to the default database for that server. When you select a specific database from the Open Interactive SQL menu, Interactive SQL opens to the selected database.

StepsStarting Interactive SQL from Sybase Central

  1. To start Interactive SQL, either:

    • Select a database in Sybase Central and select File | Open Interactive SQL. Interactive SQL connects to the database. You can also right-click on the database and select Open Interactive SQL.

    • To start Interactive SQL without a connection to a server, select Tools | Adaptive Server Enterprise | Open Interactive SQL. The Connect dialog appears.

StepsStarting Interactive SQL from the command line

How you start Interactive SQL from the command line depends on your operating system.

To open a new Interactive SQL window:

  1. Choose Window | New Window. The Connect dialog appears.

  2. In the Connect dialog, enter connection options, and click OK to connect.

    The connection information (including the database name, your user ID, and the database server) appears on the title bar above the SQL Statements pane.

You can also connect to or disconnect from a database with the Connect and Disconnect commands in the SQL menu, or by executing a connect or disconnect statement in the SQL Statements pane.