Configuring a data source on Linux

The following is a data source template:

[sampledsn]
Description=Sybase ODBC Data Source
UserID=sa
Password=
Driver=Adaptive Server Enterprise
Server=sampleserver
Port=4100
Database=pubs2
UseCursor=1

To configure a data source using the unixODBC Driver Manager command line tool, execute the following command to configure a data source for the ASE ODBC Driver using the unixODBC command line tool:

#  odbcinst -i -s -f dsn template file

where dsn template file is the complete path to the ASE ODBC Data source template file. This creates entries for the data source in the odbc.ini file.

NoteThe exact command you need to configure ODBC data sources depends on the ODBC Driver Manager you are using.