Help Center

CODBCStmt.SetStmtRowsFetchedPtrmethod

Sets an SQLUINTEGER value that points to a buffer in which to return the number of rows fetched.

DatabasesmethodCODBCStmt.incdocumented

Syntax

FUNCTION SetStmtRowsFetchedPtr (BYVAL dwAttr AS SQLUINTEGER) AS SQLRETURN

Parameters

NameDescription
dwAttrValue of the attribute.

Return value

SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.

Description

Sets 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:1915
  • Documented in Databases/ODBC Classes/CODBCStmt Class.md
  • Topic: CODBCStmt Class