Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Slow tableupdate
Message
 
 
To
06/06/2003 11:06:00
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00796511
Message ID:
00797324
Views:
27
Jason,

>How have you done the population of the integer pk field? A stored value in a config table holds the value and is updated when a record is added?

I use a GetKey( "tablename" ) function, typically it looks up a value in a keys table, increments it, replaces is in the keys table and returns the value. You can rlock the row to keep multiple users from retrieving the same key.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform