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
vb6 - extract words
Free disk clone software?
Begin/Commit Nested Transactions in VFP/Sql Server environment
What should I do when I want to decommission a Windwos 2000 server with Certificate Services installed?
get unique/distinct counts for pivot table
Allow Value List Edits in combobox?
Users whose usernames contain # cannot access OWA 404 error after authentication.
Windows 7 and compatibility mode
Format overwrites MBR
How to set the position and size for firefox using CreateProcess and MoveWindow (Visual Studio 2008, MFC)