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
How do I run a script to move contents of a file to a different location
CMonthCalCtrl.GetCurSel() returns date 2 years off
Problem with Exchange 2003
Problems with parsing an error message into a label on a form
How to retrive OU Properties in an Active Directory using VB.NET
range xldown &xright
extract numbers from a cell
Macro notification question
Windows 2008 Server immediately logging off Terminal Services sessions created from .msi / Windows Install Package
A Beautiful Disaster, multiple issues on Windows 7 / Vista Ultimate 64bit