skip to main content
OpenEdge Data Management: DataServer for ODBC
Programming Considerations : Stored procedures
 

Stored procedures

From the viewpoint of an ODBC-compliant data source, a stored procedure is a predefined procedure or set of statements or program that is defined for a specific data source according to that data source's rules. By executing the stored procedure, you execute these statements or programs without having to enter their individual statements or code at each execution.
Note: Even for data sources that do not support stored procedures, you can send statements directly to your data source using the RUN STORED–PROCEDURE send–sql–statement syntax. For more information on sending SQL statements to the data source, see Sending SQL statements directly to the data source.
In this section: 
* Defining native stored procedures to ABL
* Running a stored procedure
* Retrieving return codes
* Retrieving output parameter values
* Retrieving data-source results
* Defining a view to use as a buffer
* Sending SQL statements directly to the data source
* Handling errors from stored procedures