Re: Access Compact
From: Dave Blake (barnswood_at_hotmail.com)
Date: 08/09/04
- Next message: Anton Santa: "Re: Little help needed"
- Previous message: Dave Blake: "Re: Aggregates on DateTime fields"
- In reply to: Ryan L. Schoolman: "Access Compact"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Access Compact"
- Reply: Viatcheslav V. Vassiliev: "Re: Access Compact"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 9 Aug 2004 07:06:29 +0100
"Ryan L. Schoolman" wrote
> how do you compact an Access database ?
>
You search this ng on google and read the answer, it has been answered many
times before.
It is not an ADO function. Instead import the JRO type library and do
something like
var
MyJetEngine: JetEngine;
begin
strDataSource := 'Data Source=c:\yourdir\yourdb.mdb;';
strDataDest := 'Data Source=c:\yourdir\your_compacted_db.mdb;' +
'Jet OLEDB:Engine Type=5';
{Use Engine Type 5 for Access 2000 db}
{Use Engine Type 4 for Access 97 db }
MyJetEngine := CoJetEngine.Create();
try
MyJetEngine.CompactDatabase(strDataSource, strDataDest);
finally
MyJetEngine := nil;
end;
For more help use Google, the answers are there.
Dave
- Next message: Anton Santa: "Re: Little help needed"
- Previous message: Dave Blake: "Re: Aggregates on DateTime fields"
- In reply to: Ryan L. Schoolman: "Access Compact"
- Next in thread: Viatcheslav V. Vassiliev: "Re: Access Compact"
- Reply: Viatcheslav V. Vassiliev: "Re: Access Compact"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|