I have a problem in SQL Server. I want to remove space using Ltrim and Rtrim.
My query is like this
select len('test ')
Return 6
select len(rtrim(ltrim('test ')))
Return 6
Why Its not Removing space?
I have checked the ascii values for this space is 32.
Any help?
Thank you
Because there are no spaces in this string - after test there are two horizontal tab characters (\t).

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With