Configuring Open Client and ODBC

You must follow these procedures to configure Open Client and ODBC.

StepsSetting required environment variables

Use the Environment tab in the Control Panel System window to set the SYBASE and PATH environment variables:

  1. Set the SYBASE environment variable to the full path of the Open Client directory. Open Client is installed in Openclient subdirectory in the shared components directory that you selected during installation. For example:

    C:\PROGRAM FILES\SYBASE\EASERVER\OPENCLIENT
    
  2. Add the Open Client DLL and BIN subdirectories to the PATH environment variable.

StepsAdding server definitions to the SQL.INI file

The SQL.INI file in the Open Client INI subdirectory defines server names and addresses. You must add an entry for each EAServer or database server you intend to connect to.

  1. Create the file %SYBASE%\INI\SQL.INI if it does not already exist.

  2. Open the SQL.INI file in a text editor and add an entry in this format:

    [server_name]
    
    master=TCP,host,tds_port
    
    query=TCP,host,tds_port
    

    Where:

    NoteAnother method You can also use the Open Client dsedit tool to edit the SQL.INI file. For information about using dsedit, see the Open Client Server Configuration Guide for Desktop Platforms in the latest Open Client Server (Installation and Configuration) collection, available at the Sybase Product Manuals Web site.

StepsVerifying Open Client connectivity to the server

  1. Run the Open Client isql tool to verify the configuration:

    %SYBASE%\BIN\ISQL -S server_name -U user -P password
    

    where:

    The connection is successful if isql displays a command prompt instead of an error message.