| title | Retrieve Result Set Information (ODBC) | Microsoft Docs | ||
|---|---|---|---|
| ms.custom | |||
| ms.date | 03/03/2017 | ||
| ms.prod | sql | ||
| ms.prod_service | database-engine, sql-database, sql-data-warehouse, pdw | ||
| ms.reviewer | |||
| ms.technology | native-client | ||
| ms.topic | reference | ||
| helpviewer_keywords |
|
||
| ms.assetid | 34f235e4-f80b-4123-8764-9deb18506f14 | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| monikerRange | >=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||=sqlallproducts-allversions||>=sql-server-linux-2017||=azuresqldb-mi-current |
[!INCLUDEappliesto-ss-asdb-asdw-pdw-md]
-
Call SQLNumResultCols to get the number of columns in the result set.
-
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.