CLASS_INSTANCE_PROCEDURES view

This Information Schema view displays a row for each procedure in a class instance.

See also:

CLASS_INSTANCES view, CLASS_INSTANCE_FUNCTIONS view, SHOW PROCEDURES

Columns

Column NameData TypeDescription
PROCEDURE_NAMEVARCHARName of the stored procedure.
PROCEDURE_INSTANCE_NAMEVARCHARName of the class instance to which the procedure belongs.
PROCEDURE_INSTANCE_SCHEMAVARCHARName of the schema to which the class instance belongs.
PROCEDURE_INSTANCE_DATABASEVARCHARName of the database to which the class instance belongs.
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 in characters of string return value.
CHARACTER_OCTET_LENGTHNUMBERMaximum length in bytes of string return value.
NUMERIC_PRECISIONNUMBERNumeric precision of numeric return value.
NUMERIC_PRECISION_RADIXNUMBERRadix of precision of numeric return value.
NUMERIC_SCALEVARCHARScale of numeric return value.
PROCEDURE_LANGUAGEVARCHARLanguage of the stored procedure.
PROCEDURE_DEFINITIONVARCHARStored procedure definition.
CREATEDTIMESTAMP_LTZDate and time the stored procedure was created.
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DML, DDL, or background metadata operation. See Usage Notes.
COMMENTVARCHARComment for the stored procedure.

Usage notes

  • The view only displays objects for which the current role for the session has been granted an instance role with access privileges.
  • 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.

Examples

Retrieve the procedures for instances in the mydatabase database:

SELECT procedure_name,
       procedure_instance_name,
       argument_signature,
       data_type AS return_value_data_type
    FROM mydatabase.INFORMATION_SCHEMA.CLASS_INSTANCE_PROCEDURES;