In my Sql Server database, I've a table containing an nvarchar(4000) field called DataStructure. In this table I've 2 records having following data into DataStructure field:
Record 1:
{"FileName":"ACO23004000","SourceUrl":"http://mysite/TEST.TIF"}
Record 2:
{"FileName":"ACO23004000","SourceUrl":"http://mysite.fm/TEST.TIF"}
I try to search the value ACO23004000 using the Contains command (full text search) in SqlServer as following:
Select *
from MyTable
where CONTAINS(DataStructure, '"*ACO23004000*"')
The query returns only the first record, seems that the ".fm" value into text prevents the search of the second record.
How can I solve this issue? Is possible that some characters prevent CONTAINS command to work correctly?