GetDataSources() method

Retrieves a DataTable containing information about all visible SQL Anywhere database servers.

Visual Basic syntax

Public Overrides Function GetDataSources () As DataTable

C# syntax

public override DataTable GetDataSources ()

Examples

The following code fills a DataTable with information for each database server that is available.

DataTable servers = SADataSourceEnumerator.Instance.GetDataSources();

Usage

The returned table has four columns: ServerName, IPAddress, PortNumber, and DataBaseNames. There is a row in the table for each available database server.