Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

SQL Server Altering Column to be Unique

alter table location_key drop constraint pinky;
alter table your_table add constraint pinky unique(yourcolumn);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #SQL #Server #Altering #Column #Unique
ADD COMMENT
Topic
Name
4+1 =