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 ha
A GUID is stored as binary(16) internally. "Using uniqueidentifier Data" on MSDN tells you this.
The {
}
and -
are not part of the value.
GUIDs can be "sorted" and have greater/lesser comparisons: see the canonical "How are GUIDs sorted by SQL Server?".
Note: this means they don't sort as binary(16) (unless you CAST I suppose...)
I can't see why you'd want this in real life (not indexing, I mean real world): about the only use for the "sorting" potential of NEWID is for the random rows tricks of ORDER BY NEWID()
You can have "ascending" GUIDs (based on the article above) with NEWSEQUENTIALID. However, this "sorting" doesn't continue after a Windows restart = pointless IMO.