Test your ODBC connection on UNIX
- Last Updated: February 25, 2026
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Use the following sample C program to test your ODBC connection. You can build the sample program at the UNIX OS prompt provided that:
- The OpenEdge SQL client is installed
- A C compiler is available on the system
- The source code is saved as
test_connect.c - The resulting executable is called
testConnect
To build the executable, the following command will invoke the C compiler to compile and link the executable:
Solaris and AIX
|
Linux
|
Use the below sample program to test your ODBC connection.
testconnect.c
|
The test executable, once built, can be used to test the ability to connect to a running database server. The executable will take three parameters: DSN, user id, and user password, as shown:
|
A successful connection, using the test executable, will result in a displayed message similar to the following:
|