Wildcard searching using CONTAINS in SQL Server -


i've inherited application provides search screen users can enter criteria. stored procedure behind scenes uses contains perform search.

my users want have ability perform wildcard searches no problem since contains supports that. however, behavior not expect. msdn...

when phrase, each word contained in phrase considered separate prefix. therefore, query specifying prefix term of "local wine*" matches rows text of "local winery", "locally wined , dined", , on.

but let's did want find word "local" followed word beginning "win" - surely there syntax this?

i know recognize scenario , fall "like" condition performance suffer , can't think there way around contains.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -