CODBCStmt.GetStmtRowsFetchedPtrmethod
Gets an SQLUINTEGER value that points to a buffer in which to return the number of rows fetched.
Syntax
FUNCTION GetStmtRowsFetchedPtr () AS SQLUINTEGER
Return value
The pointer to the buffer.
Result code (GetLastResult)
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Gets an SQLUINTEGER value that points to a buffer in which to return the number of rows fetched after a call to Fetch or FetchScroll; the number of rows affected by a bulk operation performed by a call to SetPos with an Operation argument of SQL_REFRESH; or the number of rows affected by a bulk operation performed by BulkOperations. This number includes error rows.
Note: Optional feature not implemented by the Microsoft Access Driver.
Remarks
Setting this statement attribute sets the SQL_DESC_ROWS_PROCESSED_PTR field in the IRD header.
If the call to Fetch or FetchScroll that fills in the buffer pointed to by this attribute does not return SQL_SUCCESS or SQL_SUCCESS_WITH_INFO, the contents of the buffer are undefined.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:1908
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class