One of the column values in my tables have empty space at the end of each string.
In my select query, I am trying to trim the empty space at the end of string but the value is not getting trimmed.
SELECT
EmpId, RTRIM(Designation) AS Designation, City
FROM
tblEmployee
This is not trimming the empty space, not just this even the LTRIM(RTRIM(Designation) AS Designation is not working.
I also tried
CONVERT(VARCHAR(56), LTRIM(RTRIM(Designation))) AS [Designation]
Nothing is trimming the empty space at the end of the string...
Any help appreciated
EDIT
Thanks to suggestions in the comments, I checked what the last value was in the column using ASCII(). It is 160 is a non-breaking space.
How can I remove this non-breaking space?