Erik Thomas -- ErikThomas@msn.com
Thursday, March 06, 1997
Environment: VC++ 1.52c, Win 95
Does anyone know if it is possible, and if so, how to compact an Access 2.0
database (*.mdb) programmatically through ODBC? CDatabase does not encapsulate
this functionality, but ODBC administrator does provide an option to compact
an Access 2.0 database interactively, so the Access driver does seem to
include this functionality. I have scoured the ODBC 2.0 Programmer's Reference
and SDK Guide, and my MSDN CD to no avail. Any suggestions?
Thanks.
Erik Thomas
E.J.Thomas & Associates
ErikThomas@msn.com
Dong Chen -- d_chen@ix.netcom.com
Friday, March 07, 1997
[Mini-digest: 5 responses]
You can do this by using ODBC API function:
SQLConfigDataSource()
See on-online help for details.
--
Dong
d_chen@ix.netcom.com
----------
> From: Erik Thomas
> To: mfc-l@netcom.com
> Subject: Compressing an Access MDB through ODBC
> Date: Wednesday, March 05, 1997 8:24 PM
>
> Environment: VC++ 1.52c, Win 95
>
> Does anyone know if it is possible, and if so, how to compact an Access
2.0
> database (*.mdb) programmatically through ODBC? CDatabase does not
encapsulate
> this functionality, but ODBC administrator does provide an option to
compact
> an Access 2.0 database interactively, so the Access driver does seem to
> include this functionality. I have scoured the ODBC 2.0 Programmer's
Reference
> and SDK Guide, and my MSDN CD to no avail. Any suggestions?
>
> Thanks.
>
> Erik Thomas
> E.J.Thomas & Associates
> ErikThomas@msn.com
-----From: "Christian Studer"
The Access 97 ODBC driver reference says to use the ODBC API function
SQLConfigDataSource. Quote: 'To perform data compaction on a database file
programmatically, include "COMPACT_DB=