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
Well, it depends on which version of SQL Server you are using.
In SQL Server 2008 r2, 2012 And 2014 you can simply use TRIM(CompanyName)
TRIM(CompanyName)
SQL Server TRIM Function
In other versions you have to use set CompanyName = LTRIM(RTRIM(CompanyName))
set CompanyName = LTRIM(RTRIM(CompanyName))