Compact ACCDB

  • Follow


What is the best method for performing a compact/repair on an ACCDB file from 
a C# console EXE application (without calling and using MSACCESS.EXE)?  We'd 
like to use Jet (or ACE preferably) to accomplish this task and we would like 
this compiled EXE to run on a 64-bit Windows machine.  Having to install the 
Access 2010 64-bit runtime (if required) is ok.

Thanks for the help.

0
Reply Utf 6/14/2010 8:23:57 PM

John L. <JohnL@discussions.microsoft.com> wrote:
>
>What is the best method for performing a compact/repair on an ACCDB file from 
>a C# console EXE application (without calling and using MSACCESS.EXE)?  We'd 
>like to use Jet (or ACE preferably) to accomplish this task and we would like 
>this compiled EXE to run on a 64-bit Windows machine.  Having to install the 
>Access 2010 64-bit runtime (if required) is ok.

You can do this through COM.  In the Microsoft Jet & Replication Object
library, create an object of type JetEngine.  That contains a
CompactDatabase method.  You will need the runtime.

Work carefully -- make lots of copies while you are testing.
-- 
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
0
Reply Tim 6/16/2010 6:01:26 AM


1 Replies
1040 Views

(page loaded in 0.048 seconds)

Similiar Articles:
















7/24/2012 12:26:05 PM


Reply: