P
Paula Galloway
My database contains information about different organizations in several
relational tables. I have created a utility that allows the user to select
one or more organization(s). The code then copies the entire back end
database, deletes all records from all tables that do not apply to the
selected organization(s), compacts this filtered copy of the back end, and
then zips it up. The motivation is the ability for organizations to share
their portion of data with each other in an efficient way. I should mention
that these organizations are entirely independent and are not required to
communicate with each other and there is no centralized repository so
database replication does not suit our needs.
All of this is working code. My question is whether it is the best way to
do things.
In general the subset of data will be much larger than the original
database, so would it be better to start with a blank back end and just
append the data requested rather than starting with a full back end and
deleting the data not requested?
Assuming it is better to start with a blank back end, how do I create a copy
of the entire back end structure (including relationships, indexing, etc)
from code? Can it all be obtained by ADOX catalog? Does anyone have VBA
code for copying the structure of a back end database into a new blank
database?
I should note that the back end distributed with the database contains 2
sample organizations with data so it can not be used as a template. Should I
give up on copying the structure programmatically and just resign myself to
adding a blank back end template database with each distribution?
Thanks for any thoughts and comments.
relational tables. I have created a utility that allows the user to select
one or more organization(s). The code then copies the entire back end
database, deletes all records from all tables that do not apply to the
selected organization(s), compacts this filtered copy of the back end, and
then zips it up. The motivation is the ability for organizations to share
their portion of data with each other in an efficient way. I should mention
that these organizations are entirely independent and are not required to
communicate with each other and there is no centralized repository so
database replication does not suit our needs.
All of this is working code. My question is whether it is the best way to
do things.
In general the subset of data will be much larger than the original
database, so would it be better to start with a blank back end and just
append the data requested rather than starting with a full back end and
deleting the data not requested?
Assuming it is better to start with a blank back end, how do I create a copy
of the entire back end structure (including relationships, indexing, etc)
from code? Can it all be obtained by ADOX catalog? Does anyone have VBA
code for copying the structure of a back end database into a new blank
database?
I should note that the back end distributed with the database contains 2
sample organizations with data so it can not be used as a template. Should I
give up on copying the structure programmatically and just resign myself to
adding a blank back end template database with each distribution?
Thanks for any thoughts and comments.