Disconnected data
Hi,
I'm doing my first really disconnected data application. And my problem is about handling primary (and foreign) keys.
I have an application that handles customers and their orders. I need to be able to add (disconnected) new customers and new orders to them. So, I'll have to find a way, to give a new primary key to customers so I can use it when making new orders for them. That's not a problem (is it?), but how about persisting data to a db, when the app gets in connected environment?
Somehow, I should give REAL primary keys, and change the corresponding keys in orders table. How to do that?
Thanks!

Andrzej WegierskiRank #1,729 · 877 reputationPosted May 6, 2004, 11:16 PM EDT
sacrespRank #1,944 · 754 reputationPosted May 6, 2004, 11:54 PM EDT
Andrzej WegierskiRank #1,729 · 877 reputationPosted May 7, 2004, 1:22 AM EDT
sjonesRank #7,001 · 251 reputationPosted May 7, 2004, 5:40 AM EDT
sacrespRank #1,944 · 754 reputationPosted May 10, 2004, 10:03 AM EDT
sacrespRank #1,944 · 754 reputationPosted May 18, 2004, 5:05 AM EDT