I have SQL Server 2008 R2 and I want to set a unique column.
There seems to be two ways to do this: \"unique index\" and \"unique constraint\". They are not much
To create these constraints through the GUI you need the "indexes and keys" dialogue not the check constraints one.
But in your case you just need to run the piece of code you already have. It doesn't need to be entered into the expression dialogue at all.