I'm having performance problems with like statements. I did some searching on the internet, which say's I need to use the 'Contains' predicate. However, when I implement this, is doesn't work properly.I have a table with several columns (about 25 columns) with a FullTextIndex on 2 columns (name and number). The number column can include alphanumerical signs.When i do a search with a Like statement, it will find all data, including where parts of the name or number are what i search for, however with contains it doesnt.In example:Table: 'Employee', columns are 'ID (PK) int', 'Name ('Nvarchar(40)), Number (Nvarchar(25)), 'SomeOtherColumns'.When I query:[code="sql"]select *from Employeewhere Name like '%Jo%' [/code]It finds 'John doe', 'TheJo', 'Jo'When i query:[code="sql"]select *from Employeewhere Contains(Name, '"Jo*"')[/code]It finds 'John doe', 'Jo'. But I also want to display the 'TheJo' record.Is there a way to archieve this?
↧