Benefits of Database Procedures
Database procedures produce the following benefits:
• Processing complex transactions is easier for the user because the details of access to underlying table and views are encapsulated within the procedure. This allows a less experienced user to process the data and can ensure that business rules are enforced by the stored procedure when the data is accessed by the client application.
• Using stored procedures can reduce network traffic. For example, a database procedure can be invoked with one execute statement. This invoked procedure can issue multiple SQL statements. Only the invocation of the stored procedure and its response flow over the network.
• Database procedures can be shared by multiple clients because they are stored in the server and not the client. This reduces administration costs and allows complex application logic to be managed in the server instead of at each client system.
Stored procedures can be invoked by any supported front ends. These include OpenROAD, embedded SQL/C, OpenAPI, ODBC, and JDBC.
Note: When using date string literals with database procedures, there is no need to typecast the string to date. For BYREF parameters in a database procedure, a date typecast must not be used.
Last modified date: 02/16/2024