Procedure

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:

To save settings in the procedure wizard:

NOTE. The Save and Close item is available only on editing the settings.

Working with Procedure

Start procedure

Edit settings

Editing Procedure

To open the procedure for edit, select the corresponding object in the object navigator and execute one of the operations:

The procedure editing dialog box opens:

Available operations:

Change procedure/function text

Rename procedure

Save procedure

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