Q&A for professional and enthusiast programmers
SELECT postid, postid [Post Link], text FROM comments WHERE ( Upper(text) LIKE Upper('%##UserName##%') AND Charindex('@', text) = 0 )