![]() | ![]() |
Home |
|
|
Access Service User's Guide DirectConnect for AS/400 |
|
| Chapter 12 Accessing catalog information with CSPs |
|
| sp_sproc_columns |
|
| Usage |
The access service selects information from the NULLID.SYSPROCS and NULLID.SYSPROCCOL tables. The cspas4.sql script creates this table during installation of DirectConnect.
This function corresponds to the ODBC function SQLProcedureColumns.
sp_sproc_columns returns a list of available procedures. Results are ordered by the following columns:
PROCEDURE_OWNER
PROCEDURE_NAME
COLUMN_TYPE
The lengths for varchar columns shown in the result set tables are maximums; the actual lengths depend on the target database. The following table shows the result set.
Column | Datatype | Description |
PROCEDURE_QUALIFIER | varchar(128) | Always NULL |
PROCEDURE_OWNER | varchar(128) | Value from the corresponding column of NULLID.SYSPROCCOL table |
PROCEDURE_NAME | varchar(128) NOT NULL | Name of the stored procedure |
COLUMN_NAME | varchar(128) NOT NULL | Name of the input parameter or result set column |
COLUMN_TYPE | smallint NOT NULL | Type of data in this procedure column:
|
DATA_TYPE | smallint NOT NULL | Integer code for the ODBC SQL datatype equivalent of the target database datatype for this procedure column |
TYPE_NAME | varchar(128) NOT NULL | String representing the datatype name in the target database |
PRECISION | int | Precision of the procedure column on the target database; NULL if precision is not applicable |
LENGTH | int | Length of the column in bytes |
SCALE | smallint | Number of digits to the right of the decimal point; NULL if scale is not applicable. |
RADIX | smallint | Base for numeric types; NULL if radix is not applicable |
NULLABLE | smallint | Indicates whether the procedure column accepts NULL values:
|
REMARKS | varchar(254) | Description of the procedure column |
For a general description of AS/400 stored procedures, see "General description" .
|
|