hello guys how r u ?
my question is that, can we keep more then one primary key in a single table in sql server2005? if yes then kindly tell me how ? and if no then kindly tell me the reason?
Reply Soon
Thanks.
Multiple Primary Key in SQL Server2005
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

TulasiRank #2,544 · 549 reputationPosted Oct 28, 2011, 3:53 AM EDT
Primary Key: We cannot create multiple primary key on single table. Primary Key enforces uniqueness of the column on which they are defined. Primary Key creates a clustered index on the column. Primary Key does not allow Nulls. When you define more than one column as your primary key on a table, it is called a composite primary key.
Note : we can create only one Clustered Index on table
have a look at this http://weblogs.sqlteam.com/jeffs/archive/2007/08/23/composite_primary_keys.aspx
Please mark the answer as Accepted if it helps you.
Sam HobbsRank #107 · 20.5K reputationPosted Oct 28, 2011, 9:41 AM EDT
Suthish NairRank #92 · 22.8K reputationPosted Oct 28, 2011, 11:24 AM EDT
But Faisal, you can create Identity Key column also.
http://www.c-sharpcorner.com/Forums/Thread/125873/sql-server-fun-4-how-to-insert-duplicate-values-to-iden.aspx
Faisal AnsariRank #3,366 · 427 reputationPosted Oct 28, 2011, 9:58 PM EDT
Thanks 4 reply