Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mssql unique key accept nulls

CREATE UNIQUE NONCLUSTERED INDEX idx_yourcolumn_notnull
ON YourTable(yourcolumn)
WHERE yourcolumn IS NOT NULL;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #mssql #unique #key #accept #nulls
ADD COMMENT
Topic
Name
2+1 =