Configuring the ODBC Driver and Datasource

Configure an odbc.ini file to use the ODBC driver and a datasource manually.

  1. Create an odbc.ini file:
    [sampledsn]
    Description=Sybase ODBC Data Source
    UserID=sa
    Password=
    Driver=complete_path_to_libsybdrvodb.so
    Server=sampleserver
    Port=4100
    Database=pubs2
    UseCursor=1
  2. Set the ODBCINI environment variable to the complete path to the odbc.ini file.