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
count total lines or "returns" from a string of text
I have a usb cash drawer need to make a com1
Linking from excel to Access and then back to excel
GridView-FormView Master-Detail Setup (Programmatic Solution)
Windows 7 32 bit vs 64 bit
Popup Calendar problem in C#
Unique index that ignores null values
Drag & Drop
Access Query Too Complex Error with Union Query
Windows XP - Strange Connection Issues (ping but can't browse)