Advertisement

07.06.2008 at 08:25AM PDT, ID: 23541726
[x]
Attachment Details

when to use multiple primary keys on a table

Asked by -Dman100- in MS SQL Server, SQL Server 2005

I'm still not clear on when and why to use multiple primary keys on a table.  And, what are the benefits of having multiple primary keys on a table?

I understand the foreign key relationship to other tables.  However, I don't understand when and why to use more than one primary key on a table.  My best guess is that it improves the speed to return records from the table?  Is that correct?

How do you determine when to set more than one primary key on a table?

Thanks for any help.Start Free Trial
[+][-]07.06.2008 at 09:00AM PDT, ID: 21940701

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 10:48AM PDT, ID: 21941049

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 11:35AM PDT, ID: 21941205

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 11:40AM PDT, ID: 21941218

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 11:44AM PDT, ID: 21941231

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 12:52PM PDT, ID: 21941409

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2008 at 12:58PM PDT, ID: 21941420

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Server 2005
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]07.06.2008 at 01:17PM PDT, ID: 21941473

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628