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
2010-09-20 18:24:40
Thanks to this, I actually found http://databases.about.com/od/sqlserver/a/unique.htm what solved my problem.
Margus
2010-09-20 22:30:32