>Cetin,
>
>Your code worked in 1 sec.
>
>However, Guid generated doesn't match what we currently have in our database:
>
>2F14C33D340747AE
>
>In other words, our GUID are always English letters and numbers and yours gives some unreadable chars.
>
>Our code took 4 sec. for 1K recs.
Of course they wouldn't match. I didn't sacrifice any bytes of the 16. Your version sacrifies half of the bytes (some bytes might be but not all IMHO) then does a hex+endian conversion.
On the same GUID value (after call to uuidcreate) apply str from guid and you'd see what I mean.
Cetin