SQLGetStmtOption

The SQLGetStmtOption function returns the current setting of options that are specified in SQLSetStmtOption plus a couple of additional flags. SQL_ROW_NUMBER specifies the number of the current row in the entire results set. This option is supported for Keyset and Static cursors; otherwise, 0 is returned.