Function SQLNumberOfTables(Datasource, owner)


With the function SQLNumberOfTables you can determine the number of tables in a datasource.

     Datasource,          ! (input) a string expression
     Owner                ! (input/optional) a string expression



A string containing the name of a data source.


A string containing the owner for which the number of tables must be determined. If the datasource doesn’t support the owner concept, but the owner argument is specified, an error will be raised.

Return Value

The function returns the number of tables in the specified datasource. If there are no tables for the specified datasource and owner, 0 is returned. If an error occurs when determining the number of tables, -1 is returned and an error message is displayed in the error window.

See also

The functions SQLNumberOfViews, SQLNumberOfColumns and SQLTableName.