tags:

views:

51

answers:

1

In Microsoft SQL Server 10, how do I set constraint, that column in table with data type nchar(50) must be unique?

+6  A: 
ALTER TABLE yourtable
  ADD CONSTRAINT yourColumn
  UNIQUE (uniqueConstraintName)
RandomNoob
Thanks to this, I actually found http://databases.about.com/od/sqlserver/a/unique.htm what solved my problem.
Margus