Supplying connection parameters

When no database is connected, Sybase IQ displays the Connect dialog box to request connection parameters.

StepsConnecting to a database

  1. Identify yourself in the Connect dialog box on the Identification tab, using any of these methods:

    Figure 2-1: dbisql Connect dialog box

    Shown is the dbisql Connect dialog box, which has three tabs: Identification, Database and Advanced. The Identification tab is shown as active. The top panel of the Identification tab shows two options: supply user ID and password or use integrated login. Beneath the user ID and password option are two text boxes for user ID and a password. The bottom panel of the Identification tab has three options for specifying connection: None, ODBC Data Source Name and ODBC Data Source File. The options ODBC Data Source Name and ODBC Data Source File each have a text box with a drop-down menu button and a Browse button. OK and Cancel buttons are in the bottom right corner of the dialog box.

    The password does not appear when you type it. This prevents someone else from seeing your password.

  2. After entering the password, click the Database tab.

  3. Enter the Server name you used when starting the server. Be sure that the server name is unique on your local area network.

    For remote servers, specify the server as host name:port number. Select the check box Search network for database servers.

  4. Tab to the Database name and enter the database filename, without any suffix.

  5. Tab to the Database file and enter the full pathname to the .db file. You can use the Browse key to locate the file, as shown in Figure 2-2.

    Figure 2-2: dbisql Connect dialog Database tab

    Shown is the dbisql Connect dialog box with the Database tab active. The top panel has a Server name text box and a Start line text box. The Server name text box has a Find button and there is a checkbox option to search network for database servers. The bottom panel of the Database tab has a text box for specifying Database name and a text box with Browse button for Database file. There is also a text box for encryption key. Below the text boxes are two check boxes: Start database automatically and Stop database after last disconnect. All of the text boxes on the Database tab have drop-down menu buttons, except for encryption key. OK and Cancel buttons are in the bottom right corner of the dialog box.

    The check box Search network for database servers is deselected by default. You must enable this check box in order for dbisql to locate remote servers.

    You must supply the DBF parameter and the database file name to connect when you use dbisqlc or dbisql and you have restored the database from backup while connected to utility_db. For details, see “Reconnecting after you restore” in Sybase IQ System Administration Guide.

You can bypass the Connect dialog box by supplying the connection parameters on the command line with the -c option as shown in “Examples”.

You can also click Cancel to start Interactive SQL with no database connected. You can then enter a CONNECT command in the SQL Statements window. For example, to connect to the sample database on a local server, you could use:

CONNECT USING 'UID=DBA;PWD=SQL'

If the CONNECT dialog or an error message about missing information pops up, you may need to enter the -host and -port or other missing information in the Advanced tab. If your database is on a remote server, enter the -host and -port parameters on separate lines, as in:

-host fiona
-port 1870

For a complete list of connection parameters, see Chapter 4, “Connection and Communication Parameters” in the Sybase IQ System Administration Guide.

After connecting to the database, Interactive SQL displays the database name, user ID, and server name for the connection on the title bar, as shown in Figure 2-3.

Figure 2-3: dbisql window

Shown is the dbisql window with a menu bar at the top with seven drop down menus: file, edit, sequel, data, tools, window and help. Underneath is the interactive sequel toolbar. From left to right the five buttons perform the following functions: recall the previous sequel statement, open a list of past sequel statements, recall the next sequel statement, execute the current sequel statement and interrupt the execution of the current sequel statement. The main area of the dbisql window has three panes: sequel statements, messages and results.

NoteFor Sybase IQ 12, the Help menu item does not open dbisql online help, but dbisql help is available in Sybase Central. In Sybase Central, choose Help Æ Sybase IQ Help, then click the Index tab. Type dbisql in the Topic or Keyword box and click the Go To button.