Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need for a New FAQ
Message
From
21/11/2000 09:43:36
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvania, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Need for a New FAQ
Miscellaneous
Thread ID:
00444066
Message ID:
00444066
Views:
42
I was suprised there is no FAQ in this section for the proper (or best practice) method of generating unique primary keys.

I was wondering what the pro/con to the following would be:
Data-based: Concatenate enough data to be reliably sure of a unique index
MachineName+SomeDatetime value: The machine putting the data into the table stamps record with it's name and current datetime (which would need to be accurate to a very small interval for multiple fast inserts)
KeyGenerator: a separate mechanism for creating keys (like a next-highest-value field in a key table)

I'm currently using a view with update keys on location/repID/project, but i learned after the first implementation that this app will require the ability to change the repID from the edit grid. I would have preferred this information be part of the initial design specs, but since it wasn't - i'd like to only fix this issue once, with the best update key strategy possible.

thanks
Next
Reply
Map
View

Click here to load this message in the networking platform