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
C# ,framework 2.0 , bindingsource filter question
Auto-Complete problem
How to make a web directory to be an application in Windows 2008 application server/web server?
How to format tag right?
Accidentally removed all users from Server 2008
Duplicating a record in an MS Access Database
Index fragmentation
Jet-SQL REPLACE bug?
word 2003, the password is forgotten, how open the document
File extentions