Searching for 'special' characters in a database using TSQL
FROM Item
WHERE ItemId = 100This informed us that the character was actually ASCII value 160. Knowing this, I then used the PATINDEX function and produced a query like:SELECT *
FROM Item
WHERE PATINDEX('%' + CHAR(160) + '%',Name) > 0which seemed to return the row that he'd already identified along with new ones. This is probably not the most performant method, but this was needed to check something in a debugging/support environment and not code that would be run on a regular basis.