Retrieve Result Set Information (ODBC)
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.
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.
- Call SQLColAttribute to get specific descriptor information about the result column.