You can try using a CAST
on the column which is ntext
. It's not clear to me which column that would be from the error above. As an example, let's assume it's the CPR_DESCRIPTION
column:
SELECT *
FROM SONORA.CF_CPR_CASE
WHERE CASEFOLDERID != 2
and CMF_VLM_APPLICATION like '%CPR%'
and CAST(CPR_DESCRIPTION as varchar(2000)) ='rererere'
and CMF_TYPE_CASE_FK like '%LC_130125_074927_000001_60%'
;
Keep in mind that you need to pick an appropriately large varchar
size for the cast, and that even with the maximum size there is a potential for data loss.