Hi all.
I am currently working on a project that involves the importing of large amounts of data into an Access database and have run into a problem with the mapping of the software system to the relational DB. The problem lies in that two of the key tables have primary keys that are strings and not automated. For example, the Customers table uses the Customer Account No for the primary key and this is referenced by the Orders table. This works for the existing system as the customers are created in an accounts package that prevents a primary key being created twice, but how can I map an object's OID to this?
I was thinking of adding a second, automatic key, such as replication ID. I would then map the OID to this and make a second relationship between the tables (in the RDB and the BLL) that uses this new ID column, but I'm not sure if this would break the existing software system, which is very large, complicated and undocumented. Also, I would have to update all of the live data so that the new relationship fields were populated.
Does anyone have any experience with a similar problem? Any advice here would be greatly appreciated.
Thank you.
Stephen.
I am currently working on a project that involves the importing of large amounts of data into an Access database and have run into a problem with the mapping of the software system to the relational DB. The problem lies in that two of the key tables have primary keys that are strings and not automated. For example, the Customers table uses the Customer Account No for the primary key and this is referenced by the Orders table. This works for the existing system as the customers are created in an accounts package that prevents a primary key being created twice, but how can I map an object's OID to this?
I was thinking of adding a second, automatic key, such as replication ID. I would then map the OID to this and make a second relationship between the tables (in the RDB and the BLL) that uses this new ID column, but I'm not sure if this would break the existing software system, which is very large, complicated and undocumented. Also, I would have to update all of the live data so that the new relationship fields were populated.
Does anyone have any experience with a similar problem? Any advice here would be greatly appreciated.
Thank you.
Stephen.