Cursor Functions (Transact-SQL)

**APPLIES TO:** ![yes](media/yes.png)SQL Server (starting with 2008) ![yes](media/yes.png)Azure SQL Database ![no](media/no.png)Azure SQL Data Warehouse ![no](media/no.png)Parallel Data Warehouse

These scalar functions return information about cursors:

[@@CURSOR_ROWS](../../t-sql/functions/cursor-rows-transact-sql.md) CURSOR_STATUS
[@@FETCH_STATUS](../../t-sql/functions/fetch-status-transact-sql.md)

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)