Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » SQL Anywhere Server - Programming » SQL Anywhere Data Access APIs » SQL Anywhere .NET 2.0 API Reference » iAnywhere.Data.SQLAnywhere namespace (.NET 2.0) » SADataSourceEnumerator class


GetDataSources method

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

Visual Basic

Public Overrides Function GetDataSources() As DataTable

public override DataTable GetDataSources();

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


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

DataTable servers = SADataSourceEnumerator.Instance.GetDataSources();
See also