How to set VS2010 SQL table column to be unique?
In Microsoft SQL Server 10, how do I开发者_开发知识库 set constraint, that column in table with data type nchar(50) must be unique?
ALTER TABLE yourtable
ADD CONSTRAINT yourColumn
UNIQUE (uniqueConstraintName)
精彩评论