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. It is available to create and work with procedures only in the desktop application.

To create a Procedure object, open the object navigator and select the following:

After executing one of the operations, a procedure creation wizard opens containing the following pages:

To start the selected procedure:

NOTE. Creating of procedures and functions is not available in SQLite DBMS because such object type is missing in this DBMS.

Version Control

If the repository is connected to version control system, the procedure can be added to the system to control changes in its version. To do this, select the Add to VCS context menu item for the procedure in the object navigator. After adding the object to VCS server it is available to track its changes. Version control system stores procedure text and parameter settings. For details about working with objects added to the version control system, see the Developing Applications in a Team section.

See also:

Example of Creating a Procedure | Data Handlers in DBMS | IProcedure