Identity can harm?

  • Hi all,

    Is there any disadvantages of using Identity column as the only primary key? I've got a strong habit to set the primary key of all my tables to one identity column. This is because I think it's less overhead rather than creating the primary key according to business rules which may end up of having a composite primary key with many columns.

    Another reason of doing it is that my Software Development team is using Code Generator tools and such a tool insisted to have all the tables had an identity key set.

    Also, it's interesting, when I evaluate 3rd party Code Generators, almost all of the products insisted and suggested to use identity column in a table. Some of them refer this as a best practice in database design. At any point, I agree with that, I found that building application will become a lot easier too if I use identity especially for the PK_FK relationship.

    So far so good, until I realize from the BOL that I can't use identity column in my table if I will make it a partitioned view. (any workarounds ?)

    I need any opinions on this. Is there a major drawbacks of using identity which I might not reliaze?

    Thanks in advance.

    Hendry

  • Simon, Thanks for the link

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply