Greetings ... I'm trying to compact/repair a database on a 64-bit Windows7 machine with Office 2007 programatically via the fucntion at the bottom of this message.
The compact/repair function is called several times throughout the entire process to ensure the backend database does not bload beyond 2gigs (and become unusable). It's successfully compacting/repairing the first few times it is called, but always seems to fail on the 3rd or 4th time it is called. When it fails, it returns "Reserved Error 2950"
At this point, if I exit the app, and then open the backend database and try to manually compact/repair it, it gives the following error message: "Could not use '<file path>'; file already in use." Closing it / trying it multiple times produces the same message.
There is no LDB file set on the backend, no other users on my machine, nobody else is in the database. No clue why this is happening!
If anyone has any insight, it would be greatly aprpeciated.