Routines (alphabetical) > Object Classes > Miscellaneous Object Classes > IDLdbDatabase::GetTables

# IDLdbDatabase::GetTables

The IDLdbDatabase::GetTables function method returns a list of available tables in the datasource. A connection is required before this method is called. This method is not supported for all drivers.

This function is not available in all ODBC drivers. Use the CAN_GET_TABLES keyword to the GetProperty method to determine whether this feature is available.

## Syntax

Tables = DBobj -> [IDLdbDatabase::]GetTables()

## Return Value

The GetTables method returns an array of IDL DataMiner structures with the following fields:

- QUALIFIER: The table qualifier.
- OWNER: The owner of the table.
- NAME: The name of the table
- TYPE: The type of the table.

## Arguments

None.

## Keywords

None.

## Version History

5.0 | Introduced