A stored procedure is a pre-compiled collection of SQL statements that are stored under a name and processed as a unit. The Stored Procedure Editor simplifies the management of model-level and table-level stored procedures. You can use the Stored Procedure Editor to add, change, view, or delete stored procedures for the model, tables, or views. You can review or assign the type of stored procedure and whether it is generated in the schema. You can also assign the Function command here.
The order in which you generate stored procedures to your database is important. The stored procedure code is generated according to the order in the Stored Procedure Editor.
To define a stored procedure
The Stored Procedure Editor opens.
Note: Click New on the toolbar to create a new stored procedure. Use the Enter filter text box to filter a very large list of stored procedures to quickly locate the one that you want to define.
Specifies the name of the stored procedure. Change the name of the stored procedure in this field.
Specifies whether the stored procedure type is model-level or table-level. Select the type from the drop-down list.
Specifies to attach the selected stored procedure to each new table that you create. Clear the check box if you want to manually attach the stored procedure to new tables.
Generates SQL during forward engineering. Clear the check box if you do not want to generate SQL.
The stored procedure is defined and the Stored Procedure Editor closes.
Note: Click the Stored Procedure Browser button to see the tables and views that are attached to a table-level stored procedure, view the code that is used by a table-level stored procedure, and attach tables and views in a model to a stored procedure.
Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |