Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Text Filter

Author  Topic 

sanjay5219
Posting Yak Master

240 Posts

Posted - 2014-05-16 : 08:57:07
Hi All,

Is there any way in SQL to find out bad words in comments.I have created one intranet mailing system and team wanted to search of people who are using abusive words.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-05-16 : 12:00:28
WHERE SomeColumn LIKE '%badword%' OR ...

If you have a table that contains the words, then:
FROM Table1 t
JOIN BadWordList b ON t.SomeColumn LIKE '%' + b.BadWord + '%'

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -