Deleting Rows in the Rowset with SQLSetPos
After SQLSetPos returns, the deleted row is the current row, and its status is
SQL_ROW_DELETED. The row cannot be used in any further positioned operations, such as calls
to SQLGetData or SQLSetPos.
When deleting all rows of the rows (RowNumber is equal to 0), the application can prevent the driver from deleting certain
rows by using the row operation array, in the same way as for the update
operation of SQLSetPos (see
Every row that is deleted should be a row that exists in the result set. If
the application buffers were filled by fetching and if a row status array has
been maintained, its values at each of these row positions should not be
SQL_ROW_DELETED, SQL_ROW_ERROR, or SQL_ROW_NOROW.