sp_cursor
spcursor performs operations on one or more rows within a cursor's fetch buffer.
What changes
- Input
- Not stated in the Microsoft summary.
- Output or change
- Not stated in the Microsoft summary.
Syntax at a glance
sp_cursor cursor , optype , rownum , table
[ , value [ ...n ] ]
[ ; ]
[ [ UPDATE <table_name> ] SET ] { <column name> = expression } [ , ...n ]
[ SET ] <column name> = expression [ , ...n ]
<column name> = expression [ , ...n ]
[ [ INSERT [ INTO ] <table_name> ] VALUES ] ( <expression> [ , ...n ] )
[ VALUES ] ( <expression> [ , ...n ] )
Work example
spcursor performs operations on one or more rows within a cursor's fetch buffer.
Read the parameter list and identify the provider operation it supports. Do not call it directly from application T-SQL.
Check your work Why does Microsoft limit direct calls to this procedure?
Open Microsoft Learn for full syntax, permissions, and details for your version.