Executing Procedures
1 Sets the values of any parameters. For more information, see
2 Calls SQLExecDirect and passes it a string containing the SQL statement that executes the
procedure. This statement can use the escape sequence defined by ODBC or DBMS-specific
syntax; statements that use DBMS-specific syntax are not interoperable.
When SQLExecDirect is called, the driver:
1 Retrieves the current parameter values and converts them as necessary. For
more information, see
2 Calls the procedure in the data source and sends it the converted parameter
values. How the driver calls the procedure is driver-specific. For example, it
might modify the SQL statement to use the data source
3 Returns the values of any input/output or output parameters or the procedure
return value, assuming the procedure succeeds. Note that these values might not
be available until after all other results (row counts and result sets)
generated by the procedure have been processed. If the procedure fails, the driver
returns any errors.