I'm trying to add a Foreign Key to a table, but database, Sql Server 2005, does not like it.

It says that columns do not match an existing primary key or unique constraint. 

How can I find the columns in question so I can delete/change them and add the foreign key?


Question: Is there any performance difference between ++i and i++ in C#?
Answer: If you're asking this question, you're either trolling for reputation or trying to solve the wrong problem.  

The first question to ask is "how to I improve customer satisfaction with my software by making it run faster?" and the answer is almost never "use ++i instead of i++" or vice versa.

From Coding Horror's post "Hardware is Cheap, Programmers are Expensive":


  Rules of Optimization:
  Rule 1: Don't do it.
  Rule 2 (for experts only): Don't do it yet.
  -- M.A. Jackson  


I read rule 2 to mean "first write clean, clear code that meets your customer's needs, then speed it up where it's too slow".  It's highly unlikely that ++i vs. i++ is going to be the solution.