CONTAINSTABLE with wildcard works different in SQLServer 2005 and SQLServer 2008?

Posted by musuk on Stack Overflow See other posts from Stack Overflow or by musuk
Published on 2010-06-17T05:15:40Z Indexed on 2010/06/17 5:23 UTC
Read the original article Hit count: 307

I have two same databases one on SQLServer 2005 and one on SqlServer 2008, it have same SQL_Latin1_General_CP1_CI_AS Collation, and full text search catalogs have the same settings.

These two databases contains table with same data, NTEXT string: "...kræve en forklaring fra miljøminister Connie Hedegaard.."

My problem is: CONTAINSTABLE on SQLServer 2008 finds nothing if query is:

select * from ContainsTable(SearchIndex_7, Content, '"miljø*"') ct

but SQLServer 2005 works perfectly and finds necessary record.

SQLServer 2008 finds necessary record if query is:

select * from ContainsTable(SearchIndex_7, Content, '"milj*"') ct

or

select * from ContainsTable(SearchIndex_7, Content, '"miljøminister"')

What can be reason for so strange behavior?

© Stack Overflow or respective owner

Related posts about sql-server-2005

Related posts about sql-server-2008