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
Add a zero in my query since it is part of a union
Is the SDK for .Net 3.0 required to run a regasm /codebase registration?
USB doesn't recognize ONLY for my new printer (Windows Vista 64bit)
Reading PDF summary / meta data from properties: title, keywords, author
Limiting a DataGrid in WPF with ComboBoxes...
customizing access 2003 menus
Creating a service calender Exchange 2007 Outlook 2003/2007
Redirect to an PHP script from ASP.NET?
Using IsDate In VB.Net 2005
BOOT.INI for Win98 on partition 2