J
Jamie Collins
Does anyone know whether the Compact On Close option is limited to the
MS Access user interface (UI) or whether it applies to the Jet database
layer?
This relates to a question in Excel.Programming. The OP is not using MS
Access; rather, they are using ADO to connect to the .mdb database
layer. If the Compact On Close options has been set to on by Admin
using the MS Access UI, will closing the last ADO connection to the
..mdb trigger a compact?
My opinion, as a non-MS Access user, is Compact On Close applies to the
MS Access UI only, for the following reasons:
1) There is no corresponding setting in the OLE DB provider for Jet nor
in the Jet and Replication Objects (JRO) library.
2) The MS Access VBA reference tells me I may use GetOption/SetOption:
http://msdn.microsoft.com/library/d...wSettingOptionsFromVisualBasic_HV05188062.asp
All the other settings in the list seem to be MS Access-only i.e. no
corresponding settings in the OLE DB provider for Jet.
3) I think there would be too much overhead involved if this setting
did encompass all types of connection. When I compact 'manually' the
operation seems to take a relatively long time. It seems unreasonable
for a single ADO connection continually connecting/disconnecting to
incur this overhead.
Does anyone have any details? (The documentation always seems vague
when discussing Jet features; MS must enjoy blurring the distinction
between 'Jet' and 'Access'.) Alternatively, can anyone suggest a way of
testing whether terminating the last ADO connection causes the .mdb to
automatically compact?
Thanks,
Jamie.
--
MS Access user interface (UI) or whether it applies to the Jet database
layer?
This relates to a question in Excel.Programming. The OP is not using MS
Access; rather, they are using ADO to connect to the .mdb database
layer. If the Compact On Close options has been set to on by Admin
using the MS Access UI, will closing the last ADO connection to the
..mdb trigger a compact?
My opinion, as a non-MS Access user, is Compact On Close applies to the
MS Access UI only, for the following reasons:
1) There is no corresponding setting in the OLE DB provider for Jet nor
in the Jet and Replication Objects (JRO) library.
2) The MS Access VBA reference tells me I may use GetOption/SetOption:
http://msdn.microsoft.com/library/d...wSettingOptionsFromVisualBasic_HV05188062.asp
All the other settings in the list seem to be MS Access-only i.e. no
corresponding settings in the OLE DB provider for Jet.
3) I think there would be too much overhead involved if this setting
did encompass all types of connection. When I compact 'manually' the
operation seems to take a relatively long time. It seems unreasonable
for a single ADO connection continually connecting/disconnecting to
incur this overhead.
Does anyone have any details? (The documentation always seems vague
when discussing Jet features; MS must enjoy blurring the distinction
between 'Jet' and 'Access'.) Alternatively, can anyone suggest a way of
testing whether terminating the last ADO connection causes the .mdb to
automatically compact?
Thanks,
Jamie.
--