Mega Code Archive

 
Categories / Delphi / System
 

Prevent Data Corruption

Title: prevent Data Corruption? { Wenn eine Datenbank bzw. eine Tabelle (Paradox oder DBase) lokal auf einem PC installiert ist und BDE-Einstellung "LOCAL SHARE" FALSE ist, dann werden Änderungen des Tabelleninhalts durch die BDE zwischengespeichert. Diese Daten sind bei einem Chrash weg. Daher kann es sich empfehlen die Zwischenspeicherung zu umgehen: If a database or a table is local on a PC installed (Paradox or Dbase) and the BDE-setting "LOCAL SHARE" is FALSE, then changings are not stored immediatly but are kept in the memory. This changings are gone after a chrash. So it might be better after changing to store the data physically on the disk: } uses BDE; procedure TForm1.Table1AfterPost(DataSet: TDataSet); begin DbiSaveChanges(Table1.Handle); end;