This is an xy problem.
The correct datatype to use for GUIDs is uniqueidentifier
. There is no need to convert it to some numeric datatype yourself.
The uniqueidentifier
is stored in a 16 byte binary format not the char(36)
string that is displayed.