how to add unique attribute for autoincementet table code example Example: set column as unique in sql server ALTER TABLE Persons ADD UNIQUE (ID);