Cursor Functions (Transact-SQL)

APPLIES TO: yesSQL Server (starting with 2008) yesAzure SQL Database noAzure SQL Data Warehouse noParallel Data Warehouse

These scalar functions return information about cursors:

@@CURSOR_ROWS CURSOR_STATUS
@@FETCH_STATUS

All cursor functions are nondeterministic. In other words, these functions do not always return the same results each time they execute, even with the same set of input values. See Deterministic and Nondeterministic Functions for more information about function determinism.

See also

Built-in Functions (Transact-SQL)