ODBCSources

Description:              This function retrieves a list of ODBC data sources and returns it as a (dynamically allocated) array.

Returns:                    Array

Usage:                       Script

Format:                      ODBCSources()

Parameters:             None

Comments:               The return value is a pointer to a two-dimensional array, which contains a list of ODBC data sources. The first row of the array ([0][N]) contains the data source names, while the second describes the driver.

                                    64-bit VTS only:  The returned list will include both 32-bit and 64-bit data sources.

Example:

If ! Valid(sources);

[

  sources = ODBCSources() { Find the list of sources }; 

  count = ArraySize(sources, 1) { The number of sources };

]

This will obtain the list and number of ODBC data sources.

See Also:

ODBC | ODBCConfigureData | ODBCConnect | ODBCDisconnect | ODBCStatus | ODBCTables | TODBC | TODBCConnect | TODBCDisconnect