TechNet
Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sys.numbered_procedures (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabaseyesAzure SQL Data Warehouse yesParallel Data Warehouse

Contains a row for each SQL Server stored procedure that was created as a numbered procedure. This does not show a row for the base (number = 1) stored procedure. Entries for the base stored procedures can be found in views such as sys.objects and sys.procedures.

System_CAPS_ICON_important.jpg Important


Numbered procedures are deprecated. Use of numbered procedures is discouraged. A DEPRECATION_ANNOUNCEMENT event is fired when a query that uses this catalog view is compiled.

Column nameData typeDescription
object_idintID of the object of the stored procedure.
procedure_numbersmallintNumber of this procedure within the object, 2 or greater.
definitionnvarchar(max)The SQL Server text that defines this procedure.

NULL = encrypted.
System_CAPS_ICON_note.jpg Note


XML and CLR parameters are not supported for numbered procedures.

The visibility of the metadata in catalog views is limited to securables that a user either owns or on which the user has been granted some permission. For more information, see Metadata Visibility Configuration.

Object Catalog Views (Transact-SQL)
Catalog Views (Transact-SQL)

Community Additions

ADD
Show:
© 2016 Microsoft