What’s the right way to compare an NTEXT column with a constant value?
The ntext data type is deprecated in favour of the nvarchar(max) data type. If you can change the data type in the table, that would be the best solution. Then there is no problem comparing it to a varchar literal. Otherwise you would have to cast the value before comparing it: cast([ntext2] as nvarchar(max)) <> … Read more