Stores information about configured ODBC data sources into an array.

ASQLDataSources(cArrayName [, nDataSourceType])

Parameters

cArrayName
On return the array contains the following information.
ColumnContentDatatype
1The data source name.C
2The data source description.C
nDataSourceType (optional)

default = ODBC_BOTH_DSN

One of the following values.
DatasourceTypeDescription
ODBC_BOTH_DSNLists both user and system data sources.
ODBC_USER_DSNLists only user data sources.
ODBC_SYSTEM_DSNLists only system data sources.

Return Value

The number of SQL data sources.

See Also

Reference

ASQLDrivers
ChangeSQLDataSource
CreateSQLDataSource
DeleteSQLDataSource
SQLCancelEx
SQLExecEx
SQLGetPropEx
SQLPrepareEx
SQLSetPropEx

Used WinApi functions

SQLDataSources