When trying to convert records to xml in sql, I get the following error message:
Msg 6841, Level 16, State 1, Procedure trg_missacct_upd_del, Line 58
FOR XML could not serialize the data for node ‘AltAddr’ because it contains a character (0x0002)which is not allowed in XML. To retrieve
this data using FOR XML, convert it to binary, varbinary or image data
type and use the BINARY BASE64 directive.
I want to write a query to find which record has this hex value (0x0002). I’ve tried something like this:
select * from missacct where altaddr like '%' + 0x0002 + '%'
Is there a way to query out this record?
or you could do