CODBCStmt.GetStmtRowStatusPtrmethod
Gets an SQLUSMALLINT value that points to an array of SQLUSMALLINT values containing row status values after a call to **Fetch** or **FetchScroll**.
Syntax
FUNCTION GetStmtRowStatusPtr () AS SQLUINTEGER
Return value
The pointer to the array.
Result code (GetLastResult)
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_ERROR, or SQL_INVALID_HANDLE.
Description
Gets an SQLUSMALLINT value that points to an array of SQLUSMALLINT values containing row status values after a call to Fetch or FetchScroll.
Remarks
The array has as many elements as there are rows in the rowset. This statement attribute can be set to a null pointer, in which case the driver does not return row status values. This attribute can be set at any time, but the new value is not used until the next time BulkOperations, Fetch, FetchScroll, or SetPos is called.
Setting this statement attribute sets the SQL_DESC_ARRAY_STATUS_PTR field in the IRD header.
This attribute is mapped by an ODBC 2.x driver to the rgbRowStatus array in a call to ExtendedFetch.
Reference
- Include file
CODBCStmt.inc - Defined in AfxNova/COdbcStmt.inc:1895
- Documented in Databases/ODBC Classes/CODBCStmt Class.md
- Topic: CODBCStmt Class