Re: uniqueidentifier datatype

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



avoid uniqueidentifiers at all costs if there is any other alternative
(including compound keys). 16 bytes is a lot and fragmentation can be
horrific as well.

--
Kevin G. Boles
Indicium Resources, Inc.
SQL Server MVP
kgboles a earthlink dt net


"Jack" <jack@xxxxxxxxxxxx> wrote in message
news:ayhEm.13998$6q1.11726@xxxxxxxxxxxxxxx
I've got a co-worker who wants to use the uniqueidentifier datatype as a
means to identify a record containing sensitive information. This GUID
would be used in a website cookie. The twist is he also then wants to use
the guid in other tables to create the relationships by defining the
foreign table columns as a uniqueidentifier datatype too.

I think this is a little nuts. My understanding of the uniqueidentifier
datatype is it's generally used for replication, not to defined key
relationships between tables. Can you please give me some best practices
for this datatype and maybe some alternatives I can suggest?

Thank you.




.



Relevant Pages

  • Re: UniqueIdentifier Data Type
    ... I believe System.Guid has an overloaded constructer for creating a new Guid ... > I am trying to pass a UniqueIdentifier as a parameter to a SQL Server ... > tried changing the datatype of the parameter in the WebMethod but nothing ... > to the stored procedure? ...
    (microsoft.public.sqlserver.programming)
  • Re: Help with MSSQL/PHP
    ... "Dag Sunde" wrote in message ... > Somebody have misunderstood the 'uniqueidentifier' datatype ... A GUID is a unique binary number; ... >> I need help with this as binary/hex sometimes goes over my head. ...
    (comp.lang.php)
  • Re: Help with MSSQL/PHP
    ... You can't compare a 'uniqueidentifier' to just any string, ... it *MUST* be on the format (Like a GUID: ...
    (comp.lang.php)
  • Re: uniqueidentifier von SP ohne out zurückgeben
    ... int ist inkompatibel mit uniqueidentifier ... > select @mid as GUID ... Prev by Date: ... Next by Date: ...
    (microsoft.public.de.sqlserver)
  • Re: Using a character GUID for the primary key - Any issues to know ab
    ... To add my $.02 to this thread, a clustered GUID primary key on a large table ... Clustered indexes on uniqueidentifier columns might be ok for smaller tables ... > character field that contains a GUID (36 long character field that is ...
    (microsoft.public.sqlserver.server)