ODBC APIs and data types
Db2 ODBC supports a subset of the functions that the ODBC driver provides.
The following table summarizes the ODBC 3.0 application programming interfaces, ODBC SQL data types and ODBC C data types and whether those functions and data types are supported by Db2 ODBC.
ODBC features | Db2 ODBC |
---|---|
Core level functions | All, except for:
|
Level 1 functions | All, except for SQLBrowseConnect() . |
Level 2 functions | All |
Additional Db2 ODBC functions |
|
Minimum SQL data types |
|
Core SQL data types |
|
Extended SQL data types |
|
ODBC 3.0 SQL data types |
|
Core C data types |
|
Extended C data types |
|
ODBC 3.0 C data types |
|
Return codes |
|
SQLSTATEs | Mapped to X/Open SQLSTATEs with additional IBM® SQLSTATEs |
Multiple connections per application | Supported but type 1 connections, SQL_ATTR_CONNECTTYPE
= SQL_CONCURRENT_TRANS. Must be on a transaction boundary prior
to SQLConnect() or SQLSetConnection() . |