ODBC Samples

Several ODBC samples are included with SAP Sybase IQ. You can find the samples in the %ALLUSERSPROFILE%\SybaseIQ\samples\SQLAnywhere\C directory (Windows) and $SYBASE/IQ-16_0/samples/sqlanywhere/c directory (UNIX).

The samples in directories starting with ODBC illustrate separate and simple ODBC tasks, such as connecting to a database and executing statements. A complete sample ODBC program is supplied in the odbc.c file. This program performs the same actions as the embedded SQL dynamic cursor example program that is in the same directory.