Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Compact and Repair Access database

14 views
Skip to first unread message

jc

unread,
Nov 11, 2009, 1:04:07 AM11/11/09
to
Hello,

How do I programmatically Compact and Repair
an Access database?

I found several examples, on how to Compact and Repair
an Access database using VB, but I have not found any
examples using VC++/MFC.

TIA
-jc

Scot Brennecke

unread,
Nov 11, 2009, 3:19:50 AM11/11/09
to

The code examples for VB to do OLE Automation of Access can be adapted
to VC++ (with MFC). The Type library for Access needs to be #imported,
and there will be smart pointer wrapper classed generated to do the same
things you can do in VB. It's not as tidy and simple as in VB, but it's
VC++, so you're working in a better language even if it isn't as
simplistic. :)

Victor

unread,
Nov 22, 2009, 5:08:21 PM11/22/09
to
Compact using ADO:
http://support.microsoft.com/kb/230501
Compact using DAO:
http://msdn.microsoft.com/en-us/library/dsb6scf6.aspx
Repair using DAO:
http://msdn.microsoft.com/en-us/library/8ws24a09.aspx

Victor


"jc" <j...@discussions.microsoft.com> wrote in message
news:041A2EE1-72E0-4E08...@microsoft.com...

0 new messages