Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sys(2015) for primary key.
Message
From
21/12/1996 17:09:30
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00015796
Message ID:
00015797
Views:
39
>I've been using sys(2015) as the field default for certain unique keys. Am I asking for trouble? I'm not sure how sys(2015) generates the string and for how long I can expect to keep getting unique strings..
>Any other ideas for unique keys?

Yes, some people are using that technique.

However, the more used one is by using a data dictionary table that hold the actual key of each table and some others used fields. By having that table, you can also apply a locking mecanism which will garantee to always have a unique key.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform