Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Suggestions for random candidate key generation methodol
Message
 
To
09/05/2004 17:51:08
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00902286
Message ID:
00902335
Views:
19
>David-
>
>Just to continue thinking out loud...it occurs to me that I can simply grab a lock on the serial number record when I start a transaction, and, if the transaction is cancelled, just release the lock. Otherwise, I'll delete the record. That way I won't throw any numbers away.
>
>Thanks again.


I dont know the type of your SN, but if it's numeric, you can change it to character.
Numeric is base 10 and chars is base 36 (if you use A-Z,0-9).

For a 2 digit len field you have only 100 different SN (10*10) but if you use alpha you have 1296 SN (36*36)!!

For a 7 digit field, numeric give you only 10 000 000 SN and Alpha is 78 364 164 096 SN (around 2 times the Bill Gates fortune, its a big number no?).

:-)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform