Replacing a SQLJ Function Definition

You can replace the SQL definition, the return type, and change whether the function is recompiled each time it is executed.

  1. In the left pane of the Administration Console, expand ASE Servers > Compiled Objects > Functions > SQLJ Functions.
  2. Choose one of the following:
    • Click the drop-down arrow on the SQLJ function for which you want to replace the definition and select Replace.
    • From SQLJ Functions in the left pane, click the drop-down arrow and select New. Enter the name of the existing SQLJ function for which you want to replace the definition.

      When selecting an existing SQLJ function, the Confirm Replace dialog appears with an option to replace the object definition or cancel the replacement.

    The Replace SQLJ Function wizard appears.
  3. (Optional) On the External Name screen, enter a new Java class name.
  4. (Optional) On the Return Type screen, specify the datatype of the value returned by the function.
  5. (Optional) On the SQL Properties screen, modify the SQL data such as setting the dynamic result sets option, and the deterministic option.
  6. (Optional) On the SQL Editor screen, enter any changes to the SQL description.
  7. (Optional) On the Summary screen, verify the function name, database, and owner.