As a last resort this procedure does the following...

SET @searchTerm = '%' + REPLACE(@searchTerm,' ','%') + '%';
..
..
..
AND     (Title LIKE @searchTerm OR ArtistName LIKE @searchTerm)

So that is someone searches for 'friends series 7' it is first turned into
'%friends%series%7%' which will match the title 'friends complete series -
7' (for example).  This is however, very slow.  Is there a way to speed up
this sort of LIKE matching?

--
Jay



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281031
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to