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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

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

Reply via email to