I need to query a free text column for a string of characters that contain a -
and a _
. The column is defined as varchar(8000)
- a very large column with lots of characters.
This is one string : '%OTHER MIE-Explanation of BMI%'
I tried using LIKE '%OTHER MIE-Explanation of BMI%'
- no results.
I also tried using LIKE '%OTHER MIE-Explanation of BMI%' ESCAPE '-'
- no results.
Tried WHERE CONTAINS (Comment, 'OTHER MIE-Explanation of BMI')
- I get the following error message:
Cannot use a CONTAINS or FREETEXT predicate on table or indexed view '#TEMP1' because it is not full-text indexed.
Please HELP!