I need create a unique constraint, because my column in database must consists of unique values. Type is varchar. Below is my expression:
ALTER TABLE Visit ADD CONSTRAINT constr1 UNIQUE NONCLUSTERED (time)
But get an error, that this expression is wrong
Could you help me?