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
Why do I get "Invalid Qualifier" with the following code
VISUAL FOXPRO - HOW TO NUMBER OF CHARACTERS
Sql Join query - joining on multiple tables
HEAP[.exe]: Invalid Address specified to RtlValidateHeap( 00350000, 0115E000 )
Word 2007 configuration
AD 2008 - trying to remove failed DC, getting error DsRemoveDsServerW error 0x5(Access is denied.)
outlook 2007 compressing signature image??
Checking for duplicate record AfterLostFocus
RPC over HTTPS stopped working
get address from listbox