Someone asked me how to do this the other day, and I couldn’t find a simple way to do it in the SQL Server Management Studio, but the script is pretty simple:
ALTER TABLE tablename ALTER COLUMUN columnname varchar(50) NOT NULL
GO ALTER TABLE tablename ADD CONSTRAINT constraintname UNIQUE( columnname ) GO