SQL Server 2008 Full text search on a table with a composite primary key

前端 未结 2 817
轮回少年
轮回少年 2021-01-05 23:42

I am trying to put full text search working on SQL Server 2008, however the table i am trying to index is a table with a composite primary key, something like this:

2条回答
  •  甜味超标
    2021-01-06 00:06

    A full-text search key must be a unique, non-nullable, single-column index which is not offline, is not defined on a non-deterministic or imprecise nonpersisted computed column, does not have a filter, and has maximum size of 900 bytes.

    Note that it doesn't have to be the primary key (ie. the PRIMARY KEY constraint on the table). Any unique index on a non-nullable single column will work. If you don't have such a column, add an identity column to the table and add an index to it, then use this index for the full text catalog.

提交回复
热议问题