Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Question about sys(2015)
Message
 
 
To
23/12/2000 09:19:27
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00456573
Message ID:
00456601
Views:
24
>>How safe is it to use sys(2015) to generate unique ids for table records. Is >there a high probability of duplication of ids?
>>
>>David
>
>Not if its a single user application.
>Add more users, and you'll increase your odds.
>
>Is there any reason your not maintaining your own unique id counter?

In addition, I believe SYS(2015) will eventually give non-unique values. Sometime in November a year or two ago, the algorithm flipped over, and the values started repeating. SYS(2015) is documented to be used with procedure names, and Microsoft does not recommend using it to generate keys.
Mike Stewart
Previous
Reply
Map
View

Click here to load this message in the networking platform