SQLColAttributes - Obtain column attributes

SQLColAttributes() has been deprecated and replaced by SQLColAttribute().

Although this release version of DB2® CLI continues to support SQLColAttributes(), it is recommended that you begin using SQLColAttribute() in your DB2 CLI programs so that they conform to the latest standards.”

Unicode (UTF-16) equivalent: This function can also be used with the Unicode (UTF-16) character set. The corresponding Unicode function is SQLColAttributesW(). Refer to Unicode in DB2 for iCLI for more information about Unicode support for DB2 CLI.

Syntax

SQLRETURN SQLColAttributes (SQLHSTMT       StatementHandle,
                            SQLSMALLINT    ColumnNumber,
                            SQLSMALLINT    FieldIdentifier,
                            SQLPOINTER     CharacterAttributePtr,
                            SQLSMALLINT    BufferLength,
                            SQLSMALLINT    *StringLengthPtr,
                            SQLPOINTER     NumericAttributePtr);
Note: Refer to SQLColAttribute - Return a column attribute for a description of the applicable sections.