Maptitude GISDK Help

GetODBCFields()

Summary

Gets a list of all fields in an ODBC table.

 

Syntax

field_names = GetODBCFields(string table_name, string schema_name, string data_source_name)

 

Argument

Contents

table_name

Name of a table in the specified ODBC data source

schema_name

Name of the schema

data_source_name

Name of an ODBC data source

 

Returns

An array of two elements:

 

Element

Type

Contents

1

Array

An array of field names (strings)

2

Array

An array of strings indicating whether the fields are indexed, with the values "No", "Yes", "Unique" and "Primary" ("Unique" means that each value in unique, "Primary" indicates this is the primary key for the table)

 

Notes

Error Codes

Error Type

Meaning

Error

An error occurred while connecting to the given ODBC data source or while executing an ODBC API function

NotFound

The specified table does not exist in the data source

 

See Also

Function

Summary

GetODBCDataSourceInfo()

Gets information about an ODBC data source

GetODBCDataSourceNames()

Gets an array of the names of all defined ODBC data sources

GetODBCTables()

Gets a list of all the tables in an ODBC data source

 

 

©2025 Caliper Corporation www.caliper.com