Creating a Stored Procedure |
DBMaker provides two kinds language for user to create stored procedure, one is ESQL/C and another is Java.
An ESQL/C stored procedure can perform any function a C application can, including calling other C functions and system calls. A C compiler is needed for writing ESQL/C stored procedures. If you want to write your stored procedure under UNIX, generally a C compiler is already available and all you need to do is make sure it is included in your path. If your OS platform is Windows, you need to install Visual C++ version 4.2 or greater.
Given Java's popularity today; it is certainly possible that members of a development team are more proficient in Java than ESQL. To create java stored procedure, user must first define the value of the DB_SPDIR in the dmconfig.ini and copy physical jar file manually to the DB_SPDIR/jar/username/ directory. Then, execute the add jarfile sql statement to register the jar file into the database. For the details about the add jar file sql statement, please refer to the chapter 13.5.
Related topic: