remove whitespace in sql server 2012 code example Example: remove spaces sql 2008 SELECT RTRIM(LTRIM(' Word '))