GetODBCDataSourceNames()

Summary

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

Syntax

names_array = GetODBCDataSourceNames()

Returns

An array of ODBC data source names (strings), or null if an error occurred or if there are no ODBC data sources.

Notes

  • An ODBC data source can be set up with the ODBC setup or administrator program.

  • GetODBCDataSourceNames() reads the ODBC.INI file.

  • In case of errors (e.g., if the ODBC.INI file cannot be found), GetODBCDataSourceNames() returns null.

See Also

Function Summary
GetODBCDataSourceInfo() Gets information about an ODBC data source
GetODBCTables() Gets a list of all the tables in an ODBC data source
GetODBCFields() Gets a list of all the fields in an ODBC table