Russell,
If you read the details of how GUID is generated (there are tons of technical sources explaing what each byte means on the internet for different versions) you'd see that actually it's not as long as it sounds. You might drop some parts (ie: generator code like 4 for Microsoft). And then further you could convert readable hex notation to readable 36 base (digits and letters). However you should think of it, if you do a very specific implementation then you'd lose cross database capabilities (SQL server generates it, Oracle does, .Net have a class etc).
Cetin
>I knew there was a way to get a Windows-like GUID directly from Windows, but I don't need something that long and unreadable. Of course, the odds of getting a duplicate with that GUID are about 16 quintillion gazillion bazillion to one, but I'll take my 1.1 trillion to one for now. <g>
>
>>>I'm creating a simple GUID, 5 digits followed by 5 characters (uppercase A-Z only). Am I right in calculating the number of possible permutations as:
>>>
>>>10 x 10 X 10 X 10 X 10 x 26 x 26 x 26 x 26 x 26 = 1,188,137,600,000
>>>
>>>Hey, it's been a long time since I had to do this!
>>>
>>>Russell Campbell
>>
>>
Re: How generate a valid GUID Thread #
1046923 Message #
1046937>>Cetin