![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2005
Posts: 11
Rep Power: 0
![]() |
hi All,
I am converting code written in DAO into ADO. one problem i face is that i am not finding an equivalent function / code for compressing an MS Access database using ADO 2.8. This can be easily done using DAO. Someone told me its possible using ADOX but HOW???? I've been trying to find a solution for this for days now!!!!! Can anyone help me!!??? |
|
|
|
|
|
#2 |
|
Expert Programmer
|
What do you mean by compressing: compacting/repair or physically zipping up the file?
Thanks. ![]() |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2005
Posts: 11
Rep Power: 0
![]() |
Yeah I mean compacting/repair. I want to do this cause i am making a utility to synchronize data in two Access databases. So once that is done, I want to compact the database.....
|
|
|
|
|
|
#4 |
|
Expert Programmer
|
I'm assuming you're using Jet in which case the way it actually works is reprocessing the whole database into a new one:
Set DBM = New JRO.JetEngine With DBM .CompactDatabase ConnectionString1, ConnectionString2 End With Set DBM = Nothing Note that you'll need exclusive access, including to the security tables. Hope this helps. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|