SQL Flow Field Guide

sys.sp_sproc_columns

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

Returns column information for a single stored procedure or user-defined function in the current environment.

What changes

Input
Returns column information for a single stored procedure or user-defined function in the current environment.
Output or change
No write is stated in the Microsoft summary.

Syntax at a glance

sys.sp_sproc_columns
    [ [ @procedure_name = ] N'procedure_name' ]
    [ , [ @procedure_owner = ] N'procedure_owner' ]
    [ , [ @procedure_qualifier = ] N'procedure_qualifier' ]
    [ , [ @column_name = ] N'column_name' ]
    [ , [ @ODBCVer = ] ODBCVer ]
    [ , [ @fUsePattern = ] fUsePattern ]
[ ; ]

Work example

Returns column information for a single stored procedure or user-defined function in the current environment.

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.