![]() |
|
The following table shows where the database server stores information from CREATE FUNCTION and CREATE PROCEDURE statements in the sysprocedures system catalog table.
The sysprocedures system catalog table assigns a routine identifier to each row, which uniquely identifies the associated UDR. The procid column of sysprocedures stores this routine identifier.
The information about the routine type, routine name, routine owner, and routine parameters make up the routine signature. You can use the SPECIFIC keyword of CREATE FUNCTION and CREATE PROCEDURE to assign a specific name to a particular routine signature. For more information, see Assigning a Specific Routine Name.
For SPL routines, the database server also stores routine information in the sysprocbody and sysprocplan system catalog tables. The sysprocbody table stores both the text and the compiled version (which is not legible) of the SPL routine. The sysprocplan table stores a compiled version of the execution plan, which is not legible.