how to remove spaces before and after text in sql code example Example: remove spaces sql 2008 SELECT RTRIM(LTRIM(' Word '))