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
Need to connect a DataGridView with a database
Question on how deep can I go with the IIF()
Event ID 32 - store *.pst has detected a catalog checkpoint
How do I increase or turn on range locking.
Pivot Chart Grand Total
create a yes no messagebox in asp.net
Splice reports together for duplex printing?
Left Join Distinct Rows only?
Access query to include lowest value from another table
System.DirectoryServices or System.DirectoryServicesAc<wbr />countManag<wbr />ement