T-SQL stored procedure to return google style "suggested" search results
Posted
by
stephen776
on Stack Overflow
See other posts from Stack Overflow
or by stephen776
Published on 2010-12-23T12:55:15Z
Indexed on
2010/12/23
13:54 UTC
Read the original article
Hit count: 198
Ok, using SQL Server 2008. On my web page I have a textbox with jQuery-UI AutoComplete hooked up.
Now I need a stored procedure to search across all columns of a single table(or multiple joined tables I suppose) for a search string coming from the textbox/autocomplete AJAX call, and return "suggested" search strings. I am using the AdventureWorks db for testing(Products table)
So for example, the product table has columns for product name and product number(among others) and I want to return suggested search strings based on user input where they may enter a product name and/or a product number.
I have it working across a single column which was simple. Any ideas?
© Stack Overflow or respective owner