ODBCSources
(Engine-Level Function)
| Description: | Retrieves a list of ODBC data sources and returns it as a dynamically allocated array. |
| Returns: | Array |
Usage: ![]() |
Script Only. |
| Function Groups: | Database and Data Source, ODBC |
| Related to: | ODBC | ODBCConfigureData | ODBCConnect | ODBCDisconnect | ODBCStatus | ODBCTables | TODBC | TODBCConnect | TODBCDisconnect |
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 VTScada 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.
