This is in SQL Server 2005. I have a varchar column, and some rows contain finite space, for example. abc , def .
I tried to remove the trailing space with this command:
update thetable set thecolumn = rtrim(thecolumn)
But the finite space remains. I tried to find them using:
select * from thetable where thecolumn <> rtrim(thecolumn)
But he did not answer.
Are there any settings that I don’t know that affect the verification of the passed space?
EDIT:
I know that there is a space from SSMS, when I copy paste the value from the grid into the editor, it has a finite space.
source share