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
RDP Server Sizing
Running Classic ASP with IIS7
Ms Access 2003 GUI to set user-level restrictions
Access VBA: Getting Record Count
CRYPT32 EVENT ID 11
Outlook 2007 outgoing email stuck over 1mb
Error "windows cannot access the specified device path, or file. you may not have the appropriate permissions to access them"
Relational Database Cardinality (How is it expressed)
Windows 2008: When they say "CPUs supported", are they talking CPU sockets or CPU cores?
How to clear @@error or general error flag in T-SQL