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
To just trim trailing spaces you should use
UPDATE TableName SET ColumnName = RTRIM(ColumnName)
However, if you want to trim all leading and trailing spaces then use this
UPDATE TableName SET ColumnName = LTRIM(RTRIM(ColumnName))