How to set a field as a composite key in sql server 2008 and how to create a composite key in gui sql server 2008?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t set “one field” as a composite key – by definition, “composite” means more than one.
In SQL Server Management Studio, you can highlight more than one column in the table designer, and choose “Set Primary Key” from the context menu:
That makes those selected columns a composite primary key.