why not use like sql code example Example: ST_SQL is not like SELECT * FROM Student WHERE FirstName NOT LIKE '%B%'