Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Benefits to using identity

Author  Topic 

ryanoc
Starting Member

25 Posts

Posted - 2007-07-23 : 11:56:43
I'm designing a database and was researching common conventions and standards. I found that some people don't use the identity column for a primary key because they prefer to create their own unique id number for the column. Whats your opinion?

Ryan

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-07-23 : 12:03:22
It depends on the data. If you have unique data in your table you might as well use that for PK. If you cannot establish a uniqueness, then you can go for an IDENTITY column.

Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page
   

- Advertisement -