version 2004
ODBC_SQLNumResultCols (stmtID; columnCount) Longint
Parameter | Type | Description | |
stmtID | Longint | Statement ID | |
columnCount | Longint | Number of columns in the result set | |
Function result | Longint | Returns the result of the MS ODBC API function | |
SQLNumResultCols |
Description
The ODBC_SQLNumResultCols command returns the number of columns in a result set.
stmtID is a valid statement ID returned by ODBC_SQLAllocStmt.
columnCount is the number of columns in the result set. It does not include a bound bookmark column.
For more information, please see the SQLNumResultCols function in the MS ODBC API at http://msdn.microsoft.com/library/en-us/odbc/htm/odbcsqlnumresultcols.asp.
Function Results
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_STILL_EXECUTING, SQL_ERROR, or SQL_INVALID_HANDLE.