SQLTables

This function returns a list of table names and associated information stored in the system catalogs of the connected data source.

Syntax :

RETCODE SQLTables(hstmt, catalogName, lenCatalogName, schemaName, lenSchemaName, tableName, lenTableName, tableType, lenTableType);

Arguments :

The arguments for SQLTables are listed in below table.

TypeNameDescription
SQLHSTMThstmtStatement handle
SQLCHAR*catalogNameBuffer that might contain a pattern-value to qualify the result set. Catalog is the first part of a three-part table name. This must be a NULL pointer or a zero length string.
SQLSMALLINTlenCatalogNameLength of catalogName. This must be set to 0.
SQLCHAR*schemaNameBuffer that might contain a pattern-value to qualify the result set by schema name.
SQLSMALLINTlenSchemaNameLength of SchemaName
SQLCHAR*tableNameBuffer that might contain a pattern-value to qualify the result set by table name.
SQLSMALLINTLenTableNameLength of tableName
SQLCHAR*tableTypeBuffer that might contain a value list to qualify the result set by table type.
SQLSMALLINTlenTableTypeSize of tableType
Page last modified on September 26, 2009, at 01:53 AM