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



Exporting a table
Previous  Top  Next


You can use a table component's ExportTable method to export data from the EasyTable format to any datasource. If succeed the destination table will be replaced with the exported one.

For example, the following code updates records in the current table with records from the Customer table:

var
BDETable: TTable;
TETTable: TEasyTable;
dsBDE: TDataSource;
log: string;

procedure CreateBDETable;
begin
BDETable.CreateTable;
end;

begin
TETTable.ExportTable(dsBDE, BDETable.IndexDefs, CreateBDETable, log);
end;

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

Caution:   Exporting a table overwrites existing records in the destination table.


© AidAim Software EasyTable: Easytable Ben Delphi Database Single File Bde Replacemen