To Create a Stored Procedure:

  1. Click the object Stored Procedure in the tree. The Stored Procedures page will appear.

  2. Click Create. The Introduction window of the Create Stored Procedure wizard will open.

  3. Click Next. The Language Type wizard appares.

  4. You can choose the type of language to create a stored procedure. If you choose the ESQL/C, see step 5; if you choose the Java, see step 9.

  5. Click the Next, The final review will open, input the ESQL/C statement in the right console or click the import to import from a file

  6. Clicking Import will open the Open window. Files can be imported from any source, including the SPDIR directory of other databases on the server or network drives. Select the desired file by typing in the path in the File name field, or browse through the directory tree until the correct path is found.

     

  7. Click Open to open the file.

  8. The Final review window will reappear as in the example below if the imported file contains properly formatted (ASCII) text, or if you choose to manually enter the code. Click Save As to store the stored procedure to another location, or click Finish to compile and store the stored procedure in the database.

  9. Click the Next, The final review will open, input the Java stored procedure SQL script in the right console. Then click Finish.

  10. If the Stored Procedure compiles correctly, the following message will appear.

  11. Click OK.


Related topic:

Creating a Stored Procedure
Executing a Stored Procedure

Dropping a Stored Procedure

Granting Privileges on Stored Procedure