How to trim a string in SQL Server before 2017? November 16, 2022 by Tarik SELECT LTRIM(RTRIM(Names)) AS Names FROM Customer