Msg 402 SQL Errors The data types varchar(max) and xml are incompatible in the add operator By deviprasad