I think I found all the forbidden characters.
,
'
"
~
(
)
[
]
!
Question
I would like to know which characters cannot be inserted into a CONTAINS statement.
For example, let's assume I have an entry in my DB with name='Jon Snow'.
Running this query I correctly get the result.
select name
from Userstable
where CONTAINS((name),'JON AND SNOW')
Running e.g.
select name
from Userstable
where CONTAINS((name),'JO*N AND SNOW')
I get 0 results (but no error, so that's OK).
Instead, running e.g.
select name
from Userstable
where CONTAINS((name),'J[ON AND SNOW')
I get syntax error. What are the characters that give me syntax errors?
So far I found:
[
]
!
,
Thanks
Solution
I think I found all the forbidden characters.
,
'
"
~
(
)
[
]
!