Sql Server – Transact Sql to make a column unique

ALTER TABLE TableName
ADD CONSTRAINT NewConstraintName
UNIQUE(ColumnName)

Leave a Reply

Your email address will not be published. Required fields are marked *