Creating a stored procedure from the physical diagram
You can create a stored procedure or function from the physical diagram.
To create stored procedure from the diagram:
Click the Procedure tool.
Click an empty space in the diagram. The following symbol appears at the click position:
Right-click the mouse button to release the Procedure tool.
Double-click the new procedure or function symbol in the diagram to display the procedure or function property sheet.
Type a name and a code for the procedure or function.
Click Apply.
The creation of the new procedure or function is committed.
Click the Definition tab.
The Definition page appears.
Select Procedure from the dropdown list box at the top of the page.
or
Select Function from the dropdown list box at the top of the page.
The template definition appears in the text box.
Type the procedure or function definition code in the text box.
Inserting script items You can insert script items into the definition as follows: Click in the definition where you want to insert a script item. Click a script item tool. Select a script item from the menu. The script item appears at the click point.
<Optional> Click the Script tab.
The Script page appears. You can define begin and end script for the procedure or function.
Click OK.
Copyright (C) 2005. Sybase Inc. All rights reserved.