What would you recommend to search a sql server table (varchar(max) column) for a term?
Let’s say, like in ebay, if you search for ‘wii brand new’, you get results like ‘Brand New Nintendo Wii Fit Game + Balance Board Bundle’, ‘Wii Fit (Wii) BRAND NEW WII FIT GAME + BALANCE BOARD’.
I think it basically searches every word and returns the ones that contains all the words, what would you recommend?
You are looking for fulltext indexing, it allows you to do more advanced querying than regular expressions or like.
Check this article for a quick introduction, the instructions are for SQL Server 2000, where it is a little harder to setup than in 2005 or 2008.
Relevant quote: