odbc_databaseGetSchemaNames()

Synopsis

Returns a list of the database schema names. A schema is a collection of database objects created by a particular user.

Syntax

odbc_databaseGetSchemaNames ( db_pointer As User, _
                              catalog As String, _
                              Optional ignoreErrors? As Boolean = False ) As List	
Argument Type Description
db_pointer user Database reference. This reference should be obtained with the previous call to odbc_databaseOpen
catalog string Catalog name
ignoreErrors? boolean Optional; if the argument is True , then database errors are not reported as Intent exceptions; default is False .

Example 1

Enumerates the schemas of the database
Dim db As User = odbc_databaseOpen( "ODBC;DSN=PEFRESULTS") 
Dim catalogues As List = odbc_databaseGetCatalogNames( db) 
Dim schemas As List = odbc_databaseGetSchemaNames( db, First(catalogues)) 

Intent >odbc_databaseClose( db) 
--> {}