I am trying to clean up some email addresses in sql server. I can see examples of the problematic emails, and they look like this:
abc123 @xyz.com
However, when I try to run a query to find folks like these, say with:
NOT CHARINDEX(' ',LTRIM(RTRIM([Email_Address]))) = 0
or
Email_Address like '% %'
my query returns no results.
Any idea what gives?
Thanks for the quick answers. It was a Non-Breaking Space -- Char(160). The sql ASCII() function came in handy to find it.
Is it definitely a space in there or could it be some other non-printing character?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With