Or a search engine.
"This e-mail is from Reed Exhibitions (Gateway House, 28 The Quadrant, Richmond, Surrey, TW9 1DN, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions." Visit our website at http://www.reedexpo.com -----Original Message----- From: Dean Lawrence To: CF-Talk Sent: Wed Jun 13 17:32:04 2007 Subject: Re: Conditional SQL On 6/13/07, James Smith <[EMAIL PROTECTED]> wrote: > 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 Jay, If you are trying to do a keyword search, it would be better to use SQL Server's Full Text Search capability instead of using LIKE. Dean -- __________________________________________ Dean Lawrence, CIO/Partner Internet Data Technology 888.GET.IDT1 ext. 701 * fax: 888.438.4381 http://www.idatatech.com/ Corporate Internet Development and Marketing Specialists ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 beta â Build next generation applications today. Free beta download on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281045 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4