Previous Topic

Next Topic

Embedded Usage

The embedded Create Procedure statement is identical to its interactive version, with the following exceptions and additions:

The preprocessor does not validate the SQL syntax of the Create Procedure statement. The syntax is validated at runtime.

Previous Topic

Next Topic

Permissions

You must have permission to access the tables and views specified in queries issued by the procedure. If the procedure uses database events owned by other users, you must have the required permissions (raise and register) on the database events. If the procedure executes database procedures owned by other users, you must have execute permission for those procedures.

If permissions are changed after the procedure is created and the creator of the procedure no longer has permissions to access the tables and views, a runtime error results when the procedure is executed.

The grant statement can be used to assign the [no]create_procedure privilege to specific users, groups, and roles.

Previous Topic

Next Topic

Related Statements

Create Rule

Declare

Drop Procedure

Execute Procedure

Grant (privilege)


© 2007 Ingres Corporation. All rights reserved.