Starting dbisql

In this section, you can practice starting IQ and dbisql.

You can start Interactive SQL in two ways: from Sybase Central or on its own. The way that you start Interactive SQL on its own depends on your operating system.

For detailed information on connecting to databases, see Chapter 3, “Running and Connecting to Servers” in the Introduction to Sybase IQ.

StepsTo open Interactive SQL from Sybase Central

  1. In the left pane, select the Sybase IQ plug-in.

  2. In the right pane, click the Utilities tab.

  3. Double-click Open Interactive SQL in the right pane.

    The Interactive SQL window appears.

  4. Supply parameters following the steps in “Supplying connection parameters”.

NoteTip You can also access Interactive SQL by choosing Start > Programs > Sybase > Adaptive Server IQ 12.7 > Interactive SQL Java, or from within Sybase Central by choosing any of the following options:

StepsStarting Interactive SQL from Sybase Central

  1. To start Interactive SQL, right-click the server and choose Interactive SQL from the pop-up menu. In this case, Interactive SQL automatically connects to the database.

    To start Interactive SQL without a connection to a database, choose Sybase IQ 12 > Utilities > Open Interactive SQL. The Connect dialog automatically appears.

StepsStarting dbisql on UNIX

  1. Start the sample database server, if the server is not already running. To do this, change to the demo directory and execute the following command:

    % start_asiq -n servername asiqdemo.db  
    

    For servername, substitute a unique server name, for example, your system name, database name, and port number, separated by an underscore.

    NoteIf you specify -n servername without a dbname, the server connects to the default database on the current server. If you specify -n dbname without a servername, Sybase IQ connects to that database on the current server.

    For example, enter the following commands at system prompts:

    cd $SYBASE/ASIQ-12_7/demo
    start_asiq -n fiona_asiqdemo_1870 asiqdemo.db
    
  2. To start dbisql, type the following command at a system prompt: dbisql

StepsStarting dbisql on Windows

  1. From the Start menu, choose Programs > Sybase > Adaptive Server IQ 12.7 > Interactive SQL Java.

    The Connect dialog appears.

NoteOnce the database server is running, you can also start dbisql by typing dbisql at the Command Prompt or by right-clicking the server name in Sybase Central and choosing Interactive SQL from the pop-up menu.