Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I use Globally Unique IDentifier (GUID)
Message
From
04/11/2004 17:57:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00958008
Message ID:
00958317
Views:
17
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform