Contents Index Introduction to connections Using Interactive SQL

ASA Getting Started
  Connecting Your Application to its Database

Creating an ODBC data source


ODBC data sources are a convenient way of saving connection parameters for repeated use. Once you have a data source, your connection string can simply name the data source to use:

DSN=my data source

The Connect dialog in Sybase Central and Interactive SQL has fields for entering an ODBC Data Source Name or ODBC Data Source File.

This section describes how to create a simple ODBC data source in Windows.

For more detailed information, see Configuring ODBC data sources using the ODBC Administrator.

For information about setting up ODBC data sources on UNIX, see Using ODBC data sources on UNIX.

To create a simple ODBC data source

  1. Start the ODBC Administrator:

    The ODBC Data Source Administrator appears, displaying a list of the data sources you currently have installed on your computer. For example,

    The ODBC Administrator main window.
  2. On the User DSN tab, click Add.

    The Create New Data Source wizard appears.

  3. Select Adaptive Server Anywhere 9.0 from the list of drivers, and click Finish.

    The Adaptive Server Anywhere ODBC Configuration dialog appears.

    The Adaptive Server Anywhere ODBC configuration dialog.

    Many of the fields in this dialog are optional. Click the Help button at the bottom of each tab for a description of all the fields on that tab. You probably only need to use the following parameters:

  4. When you have specified the parameters you need, click OK to create the data source and close the dialog.

For descriptions of the fields on each tab in the ODBC Configuration dialog, see Configuring ODBC data sources using the ODBC Administrator.

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

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


Contents Index Introduction to connections Using Interactive SQL