DB2 Version 10.1 for Linux, UNIX, and Windows

LOB usage in ODBC applications

You can still access LOB columns from ODBC-compliant applications by setting the LongDataCompat configuration keyword in the initialization file, or by setting the SQL_ATTR_LONGDATA_COMPAT connection attribute using SQLSetConnectAttr().

Once you enable access to LOB columns, the CLI maps the ODBC long data types to the DB2® LOB data types. The LOBMaxColumnSize configuration keyword allows you to override the default COLUMN_SIZE for LOB data types.

When this mapping is in effect:

The default setting for SQL_ATTR_LONGDATA_COMPAT is SQL_LD_COMPAT_NO; that is, mapping is not in effect.

With mapping in effect, ODBC applications can retrieve and input LOB data by using the SQLGetData(), SQLPutData() and related functions.