Hi @Sajith A K
Using UniqueIdentifier as a primary key has some advantages and disadvantages, depending on your requirements.
Advantage:
UniqueIdentifier is a 16-byte GUID (Globally Unique Identifier) that is guaranteed to be unique across tables, databases, servers, and even applications. This makes it useful for scenarios where you need to merge or replicate data from different sources, or expose keys in URLs or APIs without risking collisions or guessing attacks.
Disadvantage:
UniqueIdentifier is much larger than a typical integer-based primary key, which means it takes more space and can affect the performance of queries, indexes, and joins. It also makes the rows less readable and harder to type or remember.
Best regards,
Percy Tang