Board index » delphi » ADO - compact and repair MS Access database

ADO - compact and repair MS Access database

How to compact and repair MS Access database from Delphi without using MS
Access OLE?
 

Re:ADO - compact and repair MS Access database


You have to use JRO Objects. Something like that would do the job

var
    JE : JetEngine;
begin
    JE := CoJetEngine.Create;
    try
        JE.CompactDatabase(SourceDB, DestDB);
    except
       JE := nil;
       Exit;
    end;
    JE := nil;
end;

Quote
"Nikolaj I" <n...@icb.bg> wrote in message news:3a2b9edd_1@dnews...
> How to compact and repair MS Access database from Delphi without using MS
> Access OLE?

Other Threads