Sql Server – Transact Sql to make a column unique
Posted by Jean Paul on April 23, 2011
ALTER TABLE TableName
ADD CONSTRAINT NewConstraintName
UNIQUE(ColumnName)
Posted by Jean Paul on April 23, 2011
ALTER TABLE TableName
ADD CONSTRAINT NewConstraintName
UNIQUE(ColumnName)
This entry was posted on April 23, 2011 at 9:09 AM and is filed under SQL Server. Tagged: database, sql server, tips. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a comment