GetODBCDataSources (open)

List available ODBC data sources

Syntax

LOADLIB "wh::dbase/odbc.whlib";

RECORD ARRAY FUNCTION GetODBCDataSources(INTEGER sourcetype, STRING codepage)

Parameters

INTEGER sourcetype

Type of sources to request (0=show all sources, 1=show user sources only, 2=show system sources only)

STRING codepage

Codepage that will be used to convert characters sent by the driver (leave empty to use unicode)

Return value

RECORD ARRAY

record array of data sources

driver

Driver associated with this data source

name

Name of the data source