How to retrieve result set information (ODBC)

How to Install SQL Server 2000

How To

How to retrieve result set information (ODBC)

To get information about a result set

  1. Call SQLNumResultCols to get the number of columns in the result set.

  2. For each column in the result set:
    • Call SQLDescribeCol to get information about the result column.

    Or

    • Call SQLColAttribute to get specific descriptor information about the result column.

See Also

Determining the Characteristics of a Result Set

How to process results (ODBC)

SQLColAttribute

SQLDescribeCol

SQLNumResultCols