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
Post a Comment