I have SQL Server 2008 R2 and I want to set a unique column.
There seem to be two ways to do this: "unique index" and "unique constraint". They are not much different from what I understand, although most restrictions are recommended for most, because you also get the index automatically.
How to create a unique constraint?
ALTER TABLE Customer ADD CONSTRAINT U_Name UNIQUE(Name)
Is there a way to create a unique constraint through SQL Server Management Studio?
sql sql-server sql-server-2008 unique-constraint
White Island Mar 03 2018-11-11T00: 00Z
source share