Collection Contents Index Connecting to the sample database from Interactive SQL Shutting down a database server pdf/chap3.pdf

First Guide to SQL Anywhere Studio
   PART 2. Getting Results with SQL Anywhere Studio
     CHAPTER 3. Running and Connecting to a Database Server       

Using ODBC data sources to connect


The Open Database Connectivity (ODBC) interface is defined by Microsoft Corporation, and is a standard interface for connecting client applications to database management systems in the Windows and Windows NT environments. Connections are made by specifying connection parameters. It is often convenient to collect a set of connection parameters together and store them in an ODBC data source.

You can connect to Adaptive Server Anywhere databases using ODBC data sources from PowerDynamo, SQL Modeler, InfoMaker, and from all the Adaptive Server Anywhere utilities.

Connecting to the sample database 

When you install Adaptive Server Anywhere, a sample ODBC data source is provided. You can use this to connect to the sample database. Here we show how to use it from Interactive SQL.

  To connect to the sample database using an ODBC data source:
  1. Start Interactive SQL. For instructions, see Connecting to the sample database from Interactive SQL.

  2. From the ODBC Data Source Name list, select ASA 6.0 Sample.

  3. Click OK to connect.

The ASA 6.0 Sample data source contains enough information to connect to the sample database whether or not the database server is running. You can try it both ways.

Creating data sources 

  To create an ODBC data source:
  1. From the Start button, select Programs->Sybase->Adaptive Server Anywhere 6.0->ODBC Administrator. The ODBC Administrator window is displayed, showing a list of the data sources you currently have installed on your machine:

  2. From the User DSN tab, click Add.

  3. Select Adaptive Server Anywhere 6.0 from the list of drivers, and click Finish. The Adaptive Server Anywhere ODBC Configuration window is displayed.

    Many of the fields in this window are optional. Click the question mark at the top right of the window and click an entry field to find more information about that field. For example, you may wish to just use the following parameters:

    If you wish to use Java, you will need to also specify a Start line (Database tab) providing the executable name and a cache of at least 8 Mb:

    dbeng6 -c 8M
  4. When you have specified the parameters you need, click OK to close the window and create the data source.

For Info     For a full description of database connections, see Connecting to a Database.

For Info     For more information about ODBC data sources, see Working with ODBC data sources.


Collection Contents Index Connecting to the sample database from Interactive SQL Shutting down a database server pdf/chap3.pdf