Quantcast
Channel: How is a guid actually stored and sorted/compared in SQL Server? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

How is a guid actually stored and sorted/compared in SQL Server?

$
0
0

Say I have this guid:

{2A87E3E2-2B6A-4149-9F5A-1B76092843D9}

Does it actually store this an an alpha numeric in the database? (I don't think so cause it has to fit in 16 bytes.)

If it does not, then how is it stored? (My guess is as a hex number, but I am not sure.)

How can you tell if one GUID is greater than another? (Which you may need to know for indexing purposes.) Do you read the GUID just like a hex number (for comparison)?


Viewing all articles
Browse latest Browse all 3

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>