Why can\'t I create a constraint on an nvarchar(max) column? SQL Server will not allow me to put a unique constraint on it. But, it allows me to create a unique
nvarchar(max)
A unique constraint is actually an index, and nvarchar(max) cannot be used as a key in an index.