I have trailing spaces in a column in a SQL Server table called Company Name.
Company Name
All data in this column has trailing spaces.
I want to remove all
Try SELECT LTRIM(RTRIM('Amit Tech Corp '))
SELECT LTRIM(RTRIM('Amit Tech Corp '))
LTRIM - removes any leading spaces from left side of string
RTRIM - removes any spaces from right
Ex:
update table set CompanyName = LTRIM(RTRIM(CompanyName))