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
Active X problem with Windows 2000 TS and IE 6 SP1
Dropdown list with Category & subcategories out of the same table
Only Content controls are allowed directly in a content page that contains Content controls
Different SQL datetime fomats between machines cases problems when searching using c#
Reference Problem - Name conflicts with existing project, module or object library
RGB Control
linq query handling null datetime
Color handling of a CEdit !
URL Injection flaw - OWA 2003
Unable to Install Microsoft Hotfix KB970895