PATINDEX is not case sensitive. PATINDEX returns 0 if no match is found. PATINDEX allows the handling of wildcards, unlike CHARINDEX. 12> SELECT PATINDEX("%java2s%","This is www.java2java.com") 13> 14> GO ----------- 13 (1 rows affected)