Adding a SQL Statement Operation Manually

You can manually enter a SQL statement when creating a new database service.

  1. Select the Service Interface page in the database service editor.

  2. Specify a database as an endpoint for the operations of the interface for this service. From the Enterprise Explorer, drag the database connection profile for your database onto the interface box in the service diagram.

    This creates the endpoint for the operation.

    Note

    If you insert a SQL statement operation without specifying a database, you must modify any generated parameters or result sets, and/or provide parameters or result sets by entering them manually in the parameters dialog at deploy time.

  3. Right-click the interface box and select Add SQL Statement Operation|Add Request-Response Operation from the menu.

    This adds a default operation to the interface.

  4. Expand Properties and select the Source tab.

  5. Select the Allow manual editing checkbox and enter the SQL statement in the Source tab.

    Note

    Press Ctrl+space to invoke the autocomplete list in the edit box.

  6. Expand the Parameters section and select the Parameters to verify associated parameters.

  7. To view and edit parameter properties, select the parameter in the list and expand the Properties panel to view the Properties tab.

  8. Click Add on the Parameters tab to add a new parameter to the operation.

  9. Select the parameter and edit properties in the Properties panel.

Adding a SQL Statement Operation by Importing Query Files

Adding a SQL Statement Operation Using SQL Dialog

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com