PROCEDURES view

This Information Schema view displays a row for each stored procedure defined in the specified (or current) database.

For more information about stored procedures, see Stored procedures overview.

Columns

Column NameData TypeDescription
PROCEDURE_CATALOGVARCHARDatabase that the stored procedure belongs to.
PROCEDURE_SCHEMAVARCHARSchema that the stored procedure belongs to.
PROCEDURE_NAMEVARCHARName of the stored procedure.
PROCEDURE_OWNERVARCHARName of the role that owns the stored procedure.
ARGUMENT_SIGNATUREVARCHARType signature of the stored procedure’s arguments.
DATA_TYPEVARCHARReturn value data type.
CHARACTER_MAXIMUM_LENGTHNUMBERMaximum length of string return value, in characters.
CHARACTER_OCTET_LENGTHNUMBERMaximum length of string return value, in bytes.
NUMERIC_PRECISIONNUMBERNumeric precision of numeric return value.
NUMERIC_PRECISION_RADIXNUMBERRadix of precision of numeric return value.
NUMERIC_SCALENUMBERScale of numeric return value.
PROCEDURE_LANGUAGEVARCHARProgramming language of the stored procedure.
PROCEDURE_DEFINITIONVARCHARDefinition of the stored procedure.
CREATEDTIMESTAMP_LTZCreation time of the stored procedure.
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes.
COMMENTVARCHARComment for this stored procedure.
EXTERNAL_ACCESS_INTEGRATIONSVARCHARNames of external access integrations specified by the procedure’s EXTERNAL_ACCESS_INTEGRATION parameter.
SECRETSJSON mapMap of secrets specified by the procedure’s SECRETS parameter, where map keys are secret variable names and map values are secret object names.
RUNTIME_VERSIONVARCHARRuntime version of the stored procedure’s handler language; NULL if the handler is written in SQL or JavaScript.
PACKAGESVARCHARNames of packages specified in the PACKAGES clause of the CREATE PROCEDURE statement. Currently, this column applies only when the handler is written in Python, Java, or Scala.
INSTALLED_PACKAGESVARCHARNames of all packages installed by the stored procedure. This includes packages specified by the PACKAGES clause as well as their installed dependencies. Currently, this column applies only when the handler is written in Python.
ARTIFACT_REPOSITORYVARCHARName of the artifact repository used to resolve packages for the stored procedure.
OWNER_ROLE_TYPEVARCHARThe type of role that owns the object, for example ROLE.
If a Snowflake Native App owns the object, the value is APPLICATION.
Snowflake returns NULL if you delete the object because a deleted object does not have an owner role.

Usage notes

  • The view only displays objects for which the current role for the session has been granted access privileges. The view does not honor the MANAGE GRANTS privilege and consequently may show less information compared to a SHOW command when both are executed by a user who holds the MANAGE GRANTS privilege.
  • The LAST_ALTERED column is updated when the following operations are performed on an object:

    • DDL operations.
    • DML operations (for tables only). This column is updated even when no rows are affected by the DML statement.
    • Background maintenance operations on metadata performed by Snowflake.