Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I use Globally Unique IDentifier (GUID)
Message
De
04/11/2004 17:57:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00958008
Message ID:
00958317
Vues:
18
>Hi All,
>how can i use which is belows described issue on my tables like newid()
>
>http://support.microsoft.com/support/kb/articles/Q269/3/87.asp
>
>TIA

A GUID is a 16 character value. Anything larger would be a human-readable format, but 16 bytes should be enough for the PK.

In my article about primary keys, I included the function required to generate the GUID.

http://www.utmag.com/wconnect/wc.dll?9,7,10,1599

Just include that as the default value for the PK field. You might also assign it in a form, after adding the record (or while adding the record, if you use INSERT INTO).
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform