Previous Topic: Using ProceduresNext Topic: Prepare the Statement


Get Procedure Metadata

The application can get information about procedures using the following functions:

SQLGetInfo

Returns information about how CA IDMS supports procedures:

SQLProcedures

Gets a list of the procedures defined in the SQL catalog.

The PROCEDURE_TYPE column in the result set is always SQL_PT_PROCEDURE, which indicates that the procedure does not return a value.

The result set includes 3 additional columns, which are partially defined by ODBC, but "reserved for future use":

Name

Number

Type

NUM_INPUT_PARMS

4

SMALLINT

NUM_OUTPUT_PARMS

5

SMALLINT

NUM_RESULT_SETS

6

SMALLINT

The NUM_RESULT_SETS column indicates the maximum number of result sets that can be returned from a procedure.

SQLProcedureColumns

Gets the parameter descriptions for one or more procedures from the SQL catalog. The COLUMN_TYPE for all parameters is SQL_PARAM_INPUT_OUTPUT.