开发者

CONTAINSTABLE with wildcard works different in SQL Server 2005 and SQL Server 2008?

开发者 https://www.devze.com 2023-01-03 14:20 出处:网络
I have two same databases one on SQL Server 2005 and one on SQL Server 2008, it have same SQL_Latin1_General_CP1_CI_AS Collation, and full text search catalogs have the same settings.

I have two same databases one on SQL Server 2005 and one on SQL Server 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 SQL Server 2008 finds nothing if query is:

select * 开发者_高级运维from ContainsTable(SearchIndex_7, Content, N'"miljø*"') ct

but SQL Server 2005 works perfectly and finds necessary record.

SQL Server 2008 finds necessary record if query is:

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

or

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

What can be reason for so strange behavior?


Check the default language in fulltext index column

0

精彩评论

暂无评论...
验证码 换一张
取 消