Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uniqueness of Indexes - how do you handle this?
Message
 
 
À
13/06/2000 09:08:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00376137
Message ID:
00380611
Vues:
36
Hello John.

I intend to introduce a mandatory Primary Key
column in almost all my tables. For this perpose i
am considering using the result of CoCreateGuid()
API call which is a 16 byte C structure representing
a GUID. I plan to treat the structure as a string and
store it in a column of PK C(16) NOCPTRANS. I hope
with VFP tables it will play out well. What i am
uncertain about is how to implement this scheme on
SQL servers, particularly on Oracle and MS SQL servers.
Could you eluminate me on this?

Thank you.
Kamil.


>Hey Walter,
>
>I have to go back to an earlier point in another (or the same?) thread:
>
>Surrogate keys are the absolute best way to guarantee a unique primary key bar none. Period. And, IMHO, the CoCreateGUID API call absolutely guarantees uniqueness spanning not only the table, but the database, the machine, the network, the freaking world.
A moment of silence is our cosmic reset button.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform