Returns a list of a table's field information that belongs to a particular catalog/schema.
odbc_databaseGetFieldInfo ( db_pointer As User, _ catalog As String, _ schema As String, _ table As String, _ field 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 |
schema | string | Schema name |
table | string | Table/View name |
field | string | Column/Field name |
ignoreErrors? | boolean | Optional; if the argument is True , then database errors are not reported as Intent exceptions; default is False . |
Dim db As User = odbc_databaseOpen( "ODBC;DSN=PEFRESULTS") Dim catalogues As List = odbc_databaseGetCatalogNames( db) Dim fieldInfo As List = odbc_databaseGetFieldInfo( db, First(catalogues), "", "Customer", "CustomerName") Intent >odbc_databaseClose( db) --> {"TABLE_CAT : C:\My Documents\TestDatabase.accdb", "TABLE_SCHEM : ", "TABLE_NAME : Customer", "COLUMN_NAME : CustomerName", "DATA_TYPE : -9", "TYPE_NAME : VARCHAR", ?truncated }