Retrieve Result Set Information (ODBC)

 

System_CAPS_ICON_warning.jpg Warning

SQL Server Native Client (SNAC) is not supported beyond SQL Server 2012. Avoid using SNAC in new development work, and plan to modify applications that currently use it. The Microsoft ODBC Driver for SQL Server provides native connectivity from Windows to Microsoft SQL Server and Microsoft Azure SQL Database.

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:

    Or

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

Processing Results How-to Topics (ODBC)
Determining the Characteristics of a Result Set (ODBC)

Community Additions

ADD
Show: