The table I have looks like this :
The data in the table, as it relates to the business requirement, does not uniquely identify the row. Nor does any combination of data identify the row. I could possibly use Creation_Date as part of a composite key on Client and Referral, but I am linking to foreign keys in other tables that don't need to carry this data. I am therefore forced to create an artificial key.
The choice as I see it is an Identity column or a field of type 'uniqueidentifier'.
I have been scared off using an Identity column as the primary key for a host of reasons, none of which seemed relevant in this situation.
Does the Guid type always advance in value i.e the method used to calculate it will always produce a value that is an increment on any previous value ? If it does, I can use this as the key or are there a whole host of other reasons why GUID should not be used.
Code:
CAxF_Client_Id
CAxF_Referral_Id
CAxF_Creation_Date
CAxF_Collecting_Person
CAxF_Collecting_Unit
The data in the table, as it relates to the business requirement, does not uniquely identify the row. Nor does any combination of data identify the row. I could possibly use Creation_Date as part of a composite key on Client and Referral, but I am linking to foreign keys in other tables that don't need to carry this data. I am therefore forced to create an artificial key.
The choice as I see it is an Identity column or a field of type 'uniqueidentifier'.
I have been scared off using an Identity column as the primary key for a host of reasons, none of which seemed relevant in this situation.
Does the Guid type always advance in value i.e the method used to calculate it will always produce a value that is an increment on any previous value ? If it does, I can use this as the key or are there a whole host of other reasons why GUID should not be used.