This Tech Note introduces a generic 4D method which exports or imports a whole database in XML format, including pictures, BLOBs and subtables.
A full text export/import always proves useful for long-term archiving and to repair damaged data files. Exporting all data in text only mode and re-importing into a newly created data file guarantees a clean data and indexes. Besides, it produces a perfectly defragmented data file, which increases sequential access speed.
The sequence number for each table is automatically restored.
All the code is in a single method, this allows easy installation (copy&paste) into existing structures.
PLEASE NOTE: The ExportImport method was updated 04/30/09. Please download the Tech Note again to get the latest version.
Download Complete Tech Note and Example: Windows | Mac