sql - Search List of Strings For String Match -


i trying create sql trigger alert me when user types in words. have working single word need working list of words. how can similar following, search list of words stored in other location.

where charindex('badword',body) > 0 

join badwords table , compare entries in list in trigger:

select     *     inserted i, badwords b     charindex(b.badword, i.body) > 0 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -