How can I call Access’s Compact and Repair Database utility from within C++? I’m already using ADO and ADOX, so a solution using either of those would be handy.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Similiar to:
How can I programmatically repair (not merely compact) an Access .mdb file?
You can do this using
COMto access theJRO.JetEngineobject. There is an example in C# at CodeProject which shouldn’t be too hard to convert to C++.UPDATE: Thanks to @le dorfier, here is an article with C++ example.