Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 无法对表或索引视图使用CONTAINS或FREETEXT谓词_Sql Server_Sql Server 2008_Sql Server 2008 R2 - Fatal编程技术网

Sql server 无法对表或索引视图使用CONTAINS或FREETEXT谓词

Sql server 无法对表或索引视图使用CONTAINS或FREETEXT谓词,sql-server,sql-server-2008,sql-server-2008-r2,Sql Server,Sql Server 2008,Sql Server 2008 R2,我试图修改存储过程(在select语句中添加新列),但出现以下错误: Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'vwPersonSearch' because it is not full-text indexed. 当我尝试使用SQL server 2008 R 2 management studio在视图“vwPersonSearch”上创建全文索引时,出现以下错误: Cannot use a

我试图修改存储过程(在select语句中添加新列),但出现以下错误:

Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'vwPersonSearch' because it is not full-text indexed.
当我尝试使用SQL server 2008 R 2 management studio在视图“vwPersonSearch”上创建全文索引时,出现以下错误:

Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'vwPersonSearch' because it is not full-text indexed.
必须在此表/视图上定义唯一的列


请建议解决方案

如果是唯一的,您可能是唯一的,或者添加某种类型的
id
来完成该部分。

要创建全文索引,您必须指定一个键索引,该索引必须是唯一的、单键的、不可为空的列。建议使用整数列类型以获得最佳性能


有关更多详细信息,请参阅。

请指定精确的查询和表结构