I have a table with a primary key, but I want the other two columns to be bounded, so the combination of the two is guaranteed to always be unique.
(stupid example: in the BOOKS table, the IBAN column is the primary key, but the combination of the Title and Author columns must also always be unique.)
In SQL Server Management Studio, you can either create a new index, or set IsUnique to Yes, or I can create a new unique key.
What is the difference between the two approaches and which one is better suited for which purpose?
database sql-server
JacobE Feb 19 '09 at 11:39 2009-02-19 11:39
source share