The Procedure object enables the user to create procedures and functions for various DBMS.
Unlike the DBMS command, a stored procedure or function is created on the server when the Procedure object is created in the repository. Several repository procedures may refer to the same stored procedure on database server. Changes in text of a stored procedure affect all objects referring to this procedure. The result of a procedure is the number of processed records, or some specific value if a function is created instead of a procedure.
NOTE. Creating of procedures and functions is unavailable in SQLite DBMS because such object type is missing in this DBMS.
To create the Procedure object in the object navigator click the
Create button in the main menu and select the object type on the New Object side panel.
After executing the operation the procedure creation wizard opens containing the pages:
Basic Settings. The page is used to set object name, identifier and comment.
Parameters. The page is used to set the list of parameters, which will be used in the procedure code. A role in procedure code is defined for each parameter.
Procedure/Function. The page is used to set up the procedure, determine its type and executed script.
To save settings in the procedure wizard:
Click the Save button.
Select the Save and Close item in the drop-down menu of the Save button. After this the specified settings are saved, the wizard closes, and the data edit mode opens.
NOTE. The Save and Close item is available only on editing the settings.
To open the procedure for edit, select the corresponding object in the object navigator and execute one of the operations:
Select the Edit item in the procedure's context menu.
Select the Edit in a New Tab item in the procedure's context menu.
Select the Edit in a New Window item in the procedure's context menu.
Press F4.
The procedure editing dialog box opens:

Available operations:
Change procedure/function text
The users who have only object read permissions can open the procedure for edit without being able to save changes. For details see the Working in Object Navigator section.
See also:
Example of Creating a Procedure| Data Handlers in DBMS | IProcedure