Odbc Sqlserver Unix
Odbc Sqlserver Unix
Odbc Sqlserver Unix
Connecting to a Database
Once the DataDirect Connect for ODBC drivers are installed, you can connect from your application to your
database.
Environment Setup
1 Check your permissions: Log in as a user with full r/w/x permissions recursively on the entire
DataDirect Connect for ODBC installation directory.
2 Determine which shell you are running: Execute the env command.
3 Run the DataDirect Technologies setup script to set variables: Two scripts, odbc.csh and
odbc.sh, are installed in the installation directory. For Korn, Borne, and equivalent shells, execute
odbc.sh. For a C shell, execute odbc.csh. After running the setup script, execute the env command to
verify that the installation_directory/lib directory has been added to your shared library path.
4 Set ODBCINI variable: You must set the ODBCINI environment variable. The variable should point
to the path from the root directory to the odbc.ini file where your data source will reside. DataDirect
Connect for ODBC is installed with a template odbc.ini in the installation directory. For example:
$ ivtestlib /opt/odbc/lib/ivmsssxx.so
5/06, 5.2