Home Forums Article Discussions Article Discussions by Author Discuss content posted by Marianna Petrovich Unique constraint on a nullable column RE: Unique constraint on a nullable column
SanjayAttray
SSChampion
Points: 13157
More actions
December 2, 2010 at 2:54 pm
#1258140
Got it right by fluke, but still trying to figure out how this one would resolve the issue:
Create a calculated column that is based on the column that allows nulls, and then define a UNIQUE constraint on the calculated column.
SQL DBA.