You can create a stored procedure or function from a table property sheet or from the Toolbox, Browser, or Model menu.
-
Use the Procedure tool in the diagram Toolbox.
-
Open the Procedures tab in the property sheet of a table, and click the Add a Row tool.
-
Select to access the List of Procedures, and click the Add a Row tool.
-
Right-click the model or package in the Browser, and
select .
For general information about creating objects, see Core Features Guide > Modeling with PowerDesigner > Objects.
You can create a procedure based on one of the PowerDesigner templates or on a template of your own.
Note:
When using the PowerDesigner Eclipse plug-in, you can right-click a procedure in the Browser or diagram and select Edit in SQL Editor from the contextual menu to open it in the Eclipse SQL Editor. You can optionally connect to your database in order to obtain auto-completion for table names. The procedure definition is added to the Generated SQL Files list in the Workspace Navigator.