-1

I'm running into an error exporting my database data into an excel spreadsheet:

""\v', hexadecimal value 0x0B, is an invalid character.

It looks like this is the symbol for male (♂️), and I'm not even seeing this in my database query. Is there a way to search for this hexadecimal value within an existing query?

LOL. NO.
  • 577
  • 1
  • 6
  • 33
  • 1
    https://stackoverflow.com/questions/1744334/the-quest-for-0x0b and https://stackoverflow.com/questions/11794487/sql-server-how-to-find-hexadecimal-character-in-a-table might help with the scan. – TEEKAY Mar 08 '18 at 17:59
  • @TEEKAY The second link was what I needed! I had narrowed my error down to 15 rows, then when I ran the query, it selected 6 rows. Found my culprit! – LOL. NO. Mar 08 '18 at 18:02

1 Answers1

1

ASCII 0x0B is a vertical. To find values containing the character, use CHAR and LIKE:

WHERE YourColumn LIKE '%' + CHAR(11) + '%'
Dan Guzman
  • 43,250
  • 3
  • 46
  • 71