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
 New to SQL Server Programming
 Primary key question

Author  Topic 

shifis
Posting Yak Master

157 Posts

Posted - 2006-04-10 : 14:25:31
A primary key can only have one field?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2006-04-10 : 14:27:29
No, it can contain multiple columns. You usually want to keep the size (bytes) small though.

Tara Kizer
aka tduggan
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2006-04-11 : 01:39:39
Read about PRIMARY KEY constraint in sql server help file

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -