SyntaxFix
Write A Post
Hire A Developer
Questions
You are looking for something like the following
ALTER TABLE dbo.doc_exz ADD CONSTRAINT col_b_def UNIQUE column_b
MSDN Docs