Isaac
Lifelong Learner
- Local time
- Yesterday, 21:00
- Joined
- Mar 14, 2017
- Messages
- 10,905
I want to search a table alias doc, column name Result, where doc.Result is full text indexed, using Contains, and I want to find where there is the term BSA and a % sign (percent sign, literally) within 5 words of each other.
Do I have to escape the % sign like [%] ? that seems to come back wrong syntax
This returns zero results but that may be accurate, not sure. the [%] returns syntax error
note - cross posted https://www.sqlservercentral.com/forums/topic/correct-syntax-for-this-contains-statement
Do I have to escape the % sign like [%] ? that seems to come back wrong syntax
This returns zero results but that may be accurate, not sure. the [%] returns syntax error
Code:
where contains(doc.Result,'NEAR((BSA, %), 5)')
note - cross posted https://www.sqlservercentral.com/forums/topic/correct-syntax-for-this-contains-statement