Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Surrogate Keys - Have I got the right idea
Message
From
11/01/2001 20:19:11
 
 
To
11/01/2001 20:13:24
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00434523
Message ID:
00462709
Views:
19
>Thanks Fred:)
>
>>SET Devil's Advocate ON
>>So now what happens if someone deletes the new positive value DK record again?
>>SET Devil's Advocate OFF
>
>
>Well the system crashes causing thousands of pounds worth down time of course.
>
>DOH!
>
>Lol...I spotted that one seconds after I pressed the send button.
>
>Ok then....how about we stick with minus values for deleted records but have a new minus generated PK for each deleted record.
>
>So in my nextkey table I have a key called PK_DELETED and it returns a unique minus PK for any record I delete.

So, the next question is..... Why bother? Just leave the PK alone, and generate an entirely new one for the new record. What's the problem with that???? Or did I miss something here. :/

>BTW what hourly rate is the Devil offering these days:)

< B evil G >
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform