Click or drag to resize

TableDataSourceAddDataFromOleDBConnection Method

Adds the content of the datasource

Namespace:  Easymap.AddIn.Data
Assembly:  EasyMap.AddIn (in EasyMap.AddIn.dll) Version: 12.0.0.0
Syntax
public void AddDataFromOleDBConnection(
	string oleDBConnectionString,
	string oleDBSql
)

Parameters

oleDBConnectionString
Type: SystemString
oleDBSql
Type: SystemString
Remarks
The connection string specifies the connection parameters for the database. Any OleDB compatible datasource can be used.
Note Note
Connection string for a Microsoft Access Database: Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\database.mdb
The provided SQL must be compatible with the syntax of the database. The SELECT statement must return columns with the same column names used in the EasyMap datasource.
Note Note
SELECT [plz], [val] FROM [plzData]
See Also