Manually enter a SQL statement operation using the database service editor. You can also edit SQL statements using this method.
To add a SQL statement operation:
Open the database service you want to add a SQL statement to.
Select the Interface tab of the database service editor.
Connect to your database connection profile in the Enterprise Explorer.
If you have not yet created your connection profile, right-click Databases and select New to create a new connection profile. See Creating Additional JDBC Connection Profiles for instructions.
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.
Right-click the Interface object and select Add SQL Statement Operation|Add Request Response Operation to add a default operation to the interface.
Add a SQL statement. Do the following:
Select the operation in the service editor.
Open the Properties Panel and select the Source tab.
If you had selected genericTypes as your schema type in the Properties panel before adding your SQL statement, a warning appears concerning result sets. Ignore the warning and continue with the process.
Select the Allow Manual Editing check box.
Type a SQL statement in the edit box.
To use Content Assist while typing the SQL statement, press Ctrl-Space and double-click an item in the list to enter it in the statement.
Save the service file. Click File|Save.
Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com