Operator '<>' is not defined for type 'SqlGeography' and type 'SqlGeography'.However, in the update, none of the geography fields is involved. I can only update one field and I will get this error. However, if I paste the same SQL as is in SSMS, it works.