SQL Server 2008: How to find trailing spaces

Posted by atricapilla on Stack Overflow See other posts from Stack Overflow or by atricapilla
Published on 2010-03-31T11:22:29Z Indexed on 2010/03/31 11:23 UTC
Read the original article Hit count: 723

How can I find all column values in a column which have trailing spaces? For leading spaces it would simply be

select col from table where substring(col,1,1) = ' ';

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server