--- 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: - "result sets [ODBC]" - "result sets [ODBC], fetching" 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" --- # Processing Results - Retrieve Result Set Information [!INCLUDE[appliesto-ss-asdb-asdw-pdw-md](../../includes/appliesto-ss-asdb-asdw-pdw-md.md)] ### To get information about a result set 1. Call [SQLNumResultCols](../../relational-databases/native-client-odbc-api/sqlnumresultcols.md) to get the number of columns in the result set. 2. For each column in the result set: - Call [SQLDescribeCol](../../relational-databases/native-client-odbc-api/sqldescribecol.md) to get information about the result column. Or - Call [SQLColAttribute](../../relational-databases/native-client-odbc-api/sqlcolattribute.md) to get specific descriptor information about the result column. ## See Also [Process Results (ODBC)](../../relational-databases/native-client-odbc-how-to/processing-results-process-results.md) [Determining the Characteristics of a Result Set (ODBC)](../../relational-databases/native-client-odbc-results/determining-the-characteristics-of-a-result-set-odbc.md)