Microsoft
Software
Hardware
Network
Question : CHARINDEX whole word match
I'm building SQL stored procedure logic that utilizes the "CHARINDEX" function. I'm trying to make CHARINDEX return only whole word matches. Such as:
A) CHARINDEX('fart', greasyFart) = 0
B) CHARINDEX('fart', 'greasy Fart) = 8
C) CHARINDEX('fart', 'greasy fart') = 8
Is this possible or am I attempting something that business logic should work out before SQL?
Answer : CHARINDEX whole word match
its possible, you can also use the PATINDEX
Random Solutions
MS Word conversion to Adobe
MS Access - References Lost When Distributing
SoapException when passing a class to web service
Outlook 2003 keeps crashing
After OCS F-E's IP was changed, Services would't start - SQL connection lost?
Small Business Server 2008 - TASK Scheduler Errors
Reporting Services - Comparison Report
Import data from as400 to sql server 2005
Weird multi-user Access performance problem
excel remove chars