Adding a Stored Procedure Operation

You can add stored procedures operations to a database service interface.

  1. Open the database service you want to add a stored procedure to.
  2. Select the Service Interface tab in the editor and do one of the following:
    Option Action
    Select the Service Interface page in the editor
    1. Right-click the Interface box and select Add Stored Procedure Operation > Browse for Stored Procedure Operation.
    2. Select one or more stored procedures from the list and click OK.
      Note: You cannot have two stored procedures from different databases with the same name. If this problem occurs, modify the spname element .of the catalog.schema.spname operation qualification to spname1.
      A new operation with the same name as each selected stored procedure is added to the interface.
      • If not already added, an endpoint corresponding to the JDBC connection profile exposing the stored procedures is also added to the service interface.
      • If a stored procedure was exposed from an existing operation, it does not appear in this list.
    Open the Enterprise Explorer
    1. Expand the database connection profile and drill down to Procedures & Functions.
    2. Drag the stored procedure you want to add to the service interface from the Enterprise Explorer to the Service editor.
    Open the Tool Palette Select Stored Procedure - Request Response and drag and drop it onto the service interface.
    A stored procedure operation is added to the database service interface.
  3. Select the operation and expand the Operation Parameters section.
    Tab Description
    Parameters Describes the parameters that are sent to this operation and any return values You can add or delete operation parameters using the Add and Delete buttons in the editor.
    Result Sets Displays a list of the different result sets the operation returns.
    • To view the description of a result set, select the result set in the list and click Edit.
    • To discover result sets, click Discover.
    • To add result sets, click Add.
  4. Select the operation and expand the Properties section.
    Tab Description
    Source Describes the source of the stored procedure.
    To edit a stored procedure:
    1. Click Browse and select the stored procedure.
    2. Make the changes and click OK.
    Basic Lists the operation properties. You can manually edit the properties from this location.
  5. Select File > Save.
Related concepts
Database Services
Related tasks
Opening the Tool Palette
Discovering Result Sets Using the Wizard
Discovering Result Sets Using the Dialog
Adding a Result Set Manually

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.