sql server - Is there any advantage to storing a GUID as a UNIQUEIDENTIFIER? -
my code has default value column in table:
[questionuid] uniqueidentifier default (newid()) not null,
having uniqueidentifier guess correct way if store varchar(50). make bit simpler when working c# code right getting errors type mismatch.
the guid (uniqueidentifier) 128 bit number. can indexed other number types (int/bigint/etc...).
storing guid varchar(50) bad decision storing integers in varchar.
Comments
Post a Comment