EasyTable: Single-File Embedded Database,
a BDE replacement for Delphi and C++Builder



Importing a table
Previous  Top  Next


You can use a table component's ImportTable method to import data from any datasource to the EasyTable format. If succeed the current table will be replaced with the imported one.

For example, the following code updates records in the current table with records from the Customer table:
EasyTable1.ImportTable(CustDataSource, CustTable.IndexDefs, Log);

See source code of DBTransfer utility for more detailed example of importing tables.

Caution:   Importing a table overwrites existing records.


© AidAim Software EasyTable: Easytable Bde Alternative Single File Delphi Databas