By bloid
via weblogs.asp.net
Published: Nov 05 2007 / 16:06
There is only one commandment in the Gospel of the GUID:
I. Thou shalt always use a GUID to uniquely identify a row in a table.
Whenever I hire a new member for my team, this is one of the first rules that I teach them. At first, they almost always look at me like a puppy with their ears up and their head tilted to the side as if to say "huh?"



Comments
sigzero replied ago:
Thou shalt use the best thing for the task at hand!
FlySwat replied ago:
This just goes back to the age old argument of natural vrs surrogate keys.
Personally, I prefer to use a GUID over a AutoIncrementing Int for my primary keys, however I'm not so short cited to write an entire blog post on why.
dzonelurker replied ago:
His arguments are not bad but also not absolutely convincing.
sigzero replied ago:
I am sure there are instances where you would want to use a GUID. I take issue with his "mandate".
Voters For This Link (14)
Voters Against This Link (5)