Which one is the best choice for primary key in SQL Server?
There are some example code:
Uniqueidentifiers
e.g.
IDENTITY
PROS
CONS
GUID
PROS
since they are {more or less} guaranteed to be unique, multiple tables/databases/instances/servers/networks/data centers can generate them independently, then merged without clashes;
required for some forms of replication;
CONS