SQL Flow Field Guide

sys.sp_describe_cursor_columns

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

spdescribecursorcolumns reports the attributes of the columns in the result set of a server cursor.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Not stated in the Microsoft summary.

Syntax at a glance

sys.sp_describe_cursor_columns
    [ @cursor_return = ] cursor_return OUTPUT
    , [ @cursor_source = ] { N'local' | N'global' | N'*cursor_source*' }
    , [ @cursor_identity = ] N'cursor_identity'
[ ; ]

Work example

spdescribecursorcolumns reports the attributes of the columns in the result set of a server cursor.

Read the syntax and examples. Explain each argument and its effect before writing a call.

Check your work Which inputs are required, and what result or effect does the page document?

Open Microsoft Learn for full syntax, permissions, and details for your version.