I
Ian Burton
Hi,
I hope this is the correct NewsGroup for my query.
I have a vb windows application , and I have two seperate Microsoft access
2003 databases which the application accesses.
I need to import data from one database into another database, and I would
like to know the best way of achieving this in vb. I have datasets for both
databases. I have been looking into writing code to open one dataset, and
then go through the records iteratively, and then open the second dataset,
check if the record exists, and if I have gone through the table, then
create a row, and append it to the table. then get that @@identity record,
and then select the sub table, and continue through the system.
this is not an elegant solution, and will be heavy on resources. In
Microsoft access, I could simply create an append query, and run it based on
records that do NOT exist in the first table.
What is the best approach to this? I cannot see how I might attach both
databases tables into the same dataset. Presumably then I could create some
kind of relationship to select those records not existing in the second DB,
and then create a tableadapter query for that?
thanks for any ideas or links you cvan give me. I have been looking into
this intently for a while, and I suspect I have missed something obvious.
Ian
I hope this is the correct NewsGroup for my query.
I have a vb windows application , and I have two seperate Microsoft access
2003 databases which the application accesses.
I need to import data from one database into another database, and I would
like to know the best way of achieving this in vb. I have datasets for both
databases. I have been looking into writing code to open one dataset, and
then go through the records iteratively, and then open the second dataset,
check if the record exists, and if I have gone through the table, then
create a row, and append it to the table. then get that @@identity record,
and then select the sub table, and continue through the system.
this is not an elegant solution, and will be heavy on resources. In
Microsoft access, I could simply create an append query, and run it based on
records that do NOT exist in the first table.
What is the best approach to this? I cannot see how I might attach both
databases tables into the same dataset. Presumably then I could create some
kind of relationship to select those records not existing in the second DB,
and then create a tableadapter query for that?
thanks for any ideas or links you cvan give me. I have been looking into
this intently for a while, and I suspect I have missed something obvious.
Ian