Name
sql_procedures — get procedures information for a remote DSN
Synopsis
vector
sql_procedures
(
|
in dsn varchar , |
in qualifier varchar , | |
in owner varchar , | |
in
name
varchar
) ; |
Description
This function corresponds to the ODBC catalog call of similar name. It and related functions are used by the virtual database to query remote data dictionaries.
The dsn argument must refer to a dsn previously defined by
vd_remote_data_source()
or ATTACH TABLE.
For instance, the qualifier argument corresponds to the szTableQualifier and cbTableQualifier arguments of an ODBC catalog function. The SQL NULL value corresponds to the C NULL value. The arguments can contain % signs, which are interpreted as in LIKE.
Parameters
As defined in ODBC API for the corresponding catalog call.
Return Types
As defined in ODBC API for the corresponding catalog call.
This function returns an array, with one element for each row of the result set. Each row is represented as an array with one element for each column.
Examples
Example 24.399. Simple example
dbg_obj_print (sql_procedures ('Local Virtuoso', 'DB', 'DBA', 'VT_INC_INDEX_DB_DBA_MAIL_MESSAGE')); -> ( ("DB" "DBA" "VT_INC_INDEX_DB_DBA_MAIL_MESSAGE" <DB NULL> <DB NULL> <DB NULL> <DB NULL> 0ld ) )
See Also
sql_data_sources
,
sql_columns
sql_primary_keys
,
sql_gettypeinfo
,
sql_statistics
,
sql_tables
.