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
Password Protect Multiple Excel Files
flickering in dialog controls
Move priv1 to different drive on same server
Any way to REVERSE an HD imaging?
Parallels Workstation
WSS 3.0 without Active Directory
How to get login script stored in mssql database
Using a geometry type check constrint in sql sever 2008
access run-time for 2003,Execution of this application has stopped due to a run-time error
Printing on continous paper