difference..between PK and UK

  • They both ensure that no duplicate values can be entered into a column (or set of columns), but there are differences in how they should be used.  See UNIQUE Constraints in BOL.

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • Designating the column as Primary Key causes it to be used as the base lookup of any indexes that are applied to the table (by default it is also clustered, if you do not specify otherwise).

  • Certain facilities (such as full text indexes) require there to be a primary key on a table.

Viewing 3 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply