Adding a SQL Statement Operation by Importing Query Files

Add a SQL statement operation to your database service by using an imported query file.

Prerequisites 
You can also edit the database service interface using this procedure.
  1. Open the database service you want to add a SQL statement to.
  2. Select the Service Interface tab in the editor.
  3. To add a SQL statement to the service interface, do one of the following:
    • Select the Service Interface page in the editor, right-click the Interface box, and select Add SQL Statement Operation > Add Request-Response Operation.
    • Open the Tool Palette, drag SQL Statement - Request Response from the palette, and drop it onto the interface.
    • Drag a query file from the WorkSpace Navigator and drop it onto the interface.
    A default operation is added to the service interface.
  4. Select to add a default operation to the interface.
  5. Expand the Properties section.

    The Source tab describes the query file. The Basic Properties tab lists properties, which you can edit.

  6. To add a SQL statement, do the following:
    1. In the service editor, select the operation.
    2. In Properties, select the Source tab.
    3. Click Import Query File.

      The Import Query File dialog opens.

    4. Select a Query file from your project and click OK to import the query file into the database service interface.

      The Source tab of the Database Operation Parameters dialog displays the path to the query file and the SQL text. The Parameters tab displays the query's parameters, and the Result Sets tab displays the results.

  7. Select File > Save.
Related tasks
Creating a Query File
Opening the Tool Palette
Adding a SQL Statement Operation Using Visual SQL
Adding a SQL Statement Operation Using the Properties Section

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.