EasyTable: Single-File Embedded BDE Replacement
Database for Delphi and C++Builder


Repairs the database and all its tables associated with this database component.

function RepairDatabase(var Log: String; DeleteCorruptedFiles: Boolean = False): Boolean;

Call RepairDatabase to repair data corruption that can occur due to unexpected power loss or improper operating system shutdown.

This function returns True if all the tables are correct and if no updates had been made and then the Log parameter is blank.
If some tables were corrupted, RepairDatabase return False and the Log parameter contains a string with the corrupted tables list.
When DeleteCorruptedFiles parameter is True, this method deletes all corrupted tables.
When DeleteCorruptedFiles is False, RepairDatabase repairs partially damaged tables, but some data in the corrupted tables could be lost.

Note:   Repairing process may take a long time if you work with large database. You may set the OnProgress event handler to provide the user with a feedback about the progress of the slow process or to cancel the process.

© AidAim Software EasyTable: Easytable Single-file Embedded Database Bde Replacement Delphi C\+\+builde