Managing Stored Procedures
If a data type has been defined in the Global parameters, user input will be validated in both Manage Stored Procedures and Execute Stored Procedures dialog boxes.
To manage a stored procedure:
-
In the Data Models and Views tab, right-click a Data Model and select Manage Stored Procedures.
-
Enter a name for the stored procedure.
-
On the right pane, click on the field you want to add and choose the value you want to use in order to define the procedure.
NoteThe @USER parameter is added automatically, so you should take it into account for your stored procedure even if you do not want to use it in your SELECT or UPDATE or INSERT statement.
-
Click Confirm to finish.
To execute a stored procedure:
-
In the Data Models and Views tab, right-click a Data Model and select Execute Stored Procedures.
-
The Execute Stored Procedure dialog box is displayed. Click Confirm.
NoteThe @@CURDATE value we selected in the stored procedure called MyStoredProcedure has been automatically translated in the format YYYY-MM-DD (here it is 2019/08/29).
The result in an SQL Table will look like this: