SQLColAttributes function (CLI) - Get column attributes

In ODBC 3.0, SQLColAttributes() has been deprecated and replaced with SQLColAttribute(). Although this version of CLI continues to support SQLColAttributes(), use SQLColAttribute() in your CLI programs so that they conform to the latest standards.
Unicode equivalent: This function can also be used with the Unicode character set. The corresponding Unicode function is SQLColAttributesW(). See Unicode functions (CLI) for information about ANSI to Unicode function mappings.

Migrating to the new function

The statement:
   SQLColAttributes (hstmt, colNum, SQL_DESC_COUNT, NULL, len,
                     NULL, &numCols);
for example, would be rewritten using the new function as:
   SQLColAttribute (hstmt, colNum, SQL_DESC_COUNT, NULL, len,
                    NULL, &numCols);