Contents Index Lesson 1: Start the database server Lesson 3: Send a command to the database

Introducing SQL Anywhere Studio
   Tutorial: Connecting to the Sample Database

Lesson 2: Connect to the sample database from Interactive SQL


Once the database server is running, you can connect to it from an application. Here we connect to it from Interactive SQL, and then test that the connection is working.

Connect to the sample database from Interactive SQL (Windows)

  1. Ensure that the sample database is loaded on a running server, as described in Lesson 1: Start the database server.

  2. Start Interactive SQL:

Connect to the sample database from Interactive SQL (Command prompt)

  1. Ensure that the sample database is loaded on a running server, as described in Lesson 1: Start the database server.

  2. Start Interactive SQL.

    Type the following command:

    dbisql -c "dsn=ASA 9.0 Sample"

After connecting to the database, the Interactive SQL window appears.

The Interactive SQL main window.

The database name, user ID, and server name appear in the title bar, confirming that you have successfully connected to the database.


Contents Index Lesson 1: Start the database server Lesson 3: Send a command to the database