Link to home
Start Free TrialLog in
Avatar of kukiya
kukiya

asked on

compact and repair

hi
I have a question.
I built an MFC application that connects to an access database by ODBC connection.
I also created MFC classes that inherits the CRecordset
class.

The problem is that when I delete all the records in a certain table, the size of the database does not get smaller.
I need to compact and repair the database.
My question is if there any way to update the size of the mdb database by SQL qurey or by any other way...

thanks alot !!!!
Avatar of ShaunWilde
ShaunWilde

Avatar of kukiya

ASKER

Thanks,
The point is taht I need to work with the ODBC connection
I was under the impression you can use Jet to access ODBC
Avatar of kukiya

ASKER

sorry but I'm not sure I understand.

I would like to know if I can execute the command to comapct and repair the mdb file whenever I would like via the visual c++ source code....

what I am saying is that I don't think you can via MFC - you will have to go via Jet - did you look at the articles I posted?
ASKER CERTIFIED SOLUTION
Avatar of bkdc
bkdc
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial