Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
craigmacca
Posting Yak Master
142 Posts |
Posted - 2012-01-19 : 10:31:32
|
| Hi i need a SP that will return results in relevence order, i want to pass in a string of words, not sure what the best approch is sould i have a function that will split the string into a table and search against that?DELCARE @SearchTerm NVARCHAR(2048)SET @SearchTerm = 'test content to test'SELECT *FROM content cWHERE c.content_title like '%' + @SearchTerm + '%' |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
craigmacca
Posting Yak Master
142 Posts |
Posted - 2012-01-19 : 11:24:48
|
| Thanks, i was asking if this was the best way to do this? I need for a web search so it will need to be a quick query.i can loop through and search each word but is is the best way? |
 |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
|
|
|