Originally named odbctest
(as found in Release 5 and earlier installations), iodbctest
is a simple 'C' based, ODBC-compliant Interactive SQL processor.
The binary executable of this sample application will be found in at least one of the following directories:
<OPENLINK_INSTALLATION_DIRECTORY>/samples/ODBC/ <OPENLINK_INSTALLATION_DIRECTORY>/bin/
More recent installations should include a Unicode (sometimes called "wide") variant, iodbctestw
, for use with multi-byte character sets.
Note that will only work properly when supported by suitably configured login and shell sessions and terminal emulators.
These configurations can be tricky to get all lined up right!
The source code for this application (both single- and multi-byte variants) is installed as part of the iODBC SDK, and then may be found in the following directory:
<OPENLINK_INSTALLATION_DIRECTORY>/odbcsdk/examples/
shell | command |
---|---|
sh, bash, zsh and related | |
ksh and related | |
csh, tcsh and related | |
iodbctest
DSN=<dsn name>[;UID=<username>[;PWD=<password>]][;<connect string attribute>=<value>]
DSN=Marketing;UID=scott;PWD=tiger
DSN=Marketing;UID=sa;PWD=;
iodbctest "DSN=Marketing;UID=scott;PWD=tiger"