Call Level Interface Guide and Reference

SQLColAttributes - Get Column Attributes

Status of this Function since DB2 CLI Version 5
Note:

In ODBC version 3, SQLColAttributes() has been deprecated and replaced with SQLColAttribute(); see SQLColAttribute - Return a Column Attribute for more information.

Although this version of DB2 CLI continues to support SQLColAttributes(), we recommend that you begin using SQLColAttribute() in your DB2 CLI programs so that they conform to the latest standards.

See DB2 CLI Functions Deprecated for Version 5 for more information on this and other deprecated functions.

Migrating to the New Function

All of the field identifiers used with the version 2 function SQLColAttributes() have been changed for use with SQLColAttribute(). The old field identifiers are listed in Table 34, along with their replacement values.

SQLSTATE 07002

All functions that return SQLSTATE 07002 can also return the state if the application has used SQLSetColAttributes() to inform DB2 CLI of the descriptor information of the result set, but it did not provide this for every column in the result set. See SQLState Cross Reference table for the list of DB2 CLI functions that return 07002.


[ Top of Page | Previous Page | Next Page ]