<bdo id='dHsPH'></bdo><ul id='dHsPH'></ul>

    <tfoot id='dHsPH'></tfoot>
  1. <small id='dHsPH'></small><noframes id='dHsPH'>

    1. <legend id='dHsPH'><style id='dHsPH'><dir id='dHsPH'><q id='dHsPH'></q></dir></style></legend>
    2. <i id='dHsPH'><tr id='dHsPH'><dt id='dHsPH'><q id='dHsPH'><span id='dHsPH'><b id='dHsPH'><form id='dHsPH'><ins id='dHsPH'></ins><ul id='dHsPH'></ul><sub id='dHsPH'></sub></form><legend id='dHsPH'></legend><bdo id='dHsPH'><pre id='dHsPH'><center id='dHsPH'></center></pre></bdo></b><th id='dHsPH'></th></span></q></dt></tr></i><div id='dHsPH'><tfoot id='dHsPH'></tfoot><dl id='dHsPH'><fieldset id='dHsPH'></fieldset></dl></div>

    3. 不能在表或索引视图上使用 CONTAINS 或 FREETEXT 谓词,因为它不是全文索引

      Cannot use a CONTAINS or FREETEXT predicate on table or indexed view because it is not full-text indexed(不能在表或索引视图上使用 CONTAINS 或 FREETEXT 谓词,因为它不是全文索引)

        <small id='QiRuj'></small><noframes id='QiRuj'>

            <i id='QiRuj'><tr id='QiRuj'><dt id='QiRuj'><q id='QiRuj'><span id='QiRuj'><b id='QiRuj'><form id='QiRuj'><ins id='QiRuj'></ins><ul id='QiRuj'></ul><sub id='QiRuj'></sub></form><legend id='QiRuj'></legend><bdo id='QiRuj'><pre id='QiRuj'><center id='QiRuj'></center></pre></bdo></b><th id='QiRuj'></th></span></q></dt></tr></i><div id='QiRuj'><tfoot id='QiRuj'></tfoot><dl id='QiRuj'><fieldset id='QiRuj'></fieldset></dl></div>
              • <bdo id='QiRuj'></bdo><ul id='QiRuj'></ul>
                <legend id='QiRuj'><style id='QiRuj'><dir id='QiRuj'><q id='QiRuj'></q></dir></style></legend>
                  <tbody id='QiRuj'></tbody>

                <tfoot id='QiRuj'></tfoot>
              • 本文介绍了不能在表或索引视图上使用 CONTAINS 或 FREETEXT 谓词,因为它不是全文索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我的 SQL Server 2008 R2 数据库出现以下错误:

                I am getting following error in my SQL server 2008 R2 database:

                不能在表或索引视图 'tblArmy' 上使用 CONTAINSFREETEXT 谓词,因为它不是全文索引.

                Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'tblArmy' because it is not full-text indexed.

                推荐答案

                1. 确保您已安装全文搜索功能.

                1. 创建全文搜索目录(如果需要)

                首先检查目录是否已经存在

                First check if any catalog already exists

                  select *
                  from sys.fulltext_catalogs
                

                如果没有找到目录,创建一个

                If no catalog is found create one

                  use [DatabaseName]
                  create fulltext catalog FullTextCatalog as default
                

                您可以验证目录是否以与上述相同的方式创建

                you can verify that the catalog was created in the same way as above

                创建全文搜索索引.

                  create fulltext index on Production.ProductDescription(Description)
                  key index PK_ProductDescription_ProductDescriptionID
                

                在创建索引之前,请确保:
                - 您还没有在表格上设置全文搜索索引,因为一张表格上只允许有一个全文搜索索引
                - 表上存在唯一索引.索引必须基于单键列,不允许 NULL.
                - 存在全文目录.如果没有默认的全文目录,则必须明确指定全文目录名称.

                Before you create the index, make sure:
                - you don't already have full-text search index on the table as only one full-text search index allowed on a table
                - a unique index exists on the table. The index must be based on single-key column, that does not allow NULL.
                - full-text catalog exists. You have to specify full-text catalog name explicitly if there is no default full-text catalog.

                您可以在 SQL Sever Management Studio 中执行第 2 步和第 3 步.在对象资源管理器中,右键单击一个表,选择Full-Text index 菜单项,然后选择Define Full-Text Index... 子菜单项.全文索引向导将指导您完成整个过程.如果您还没有全文搜索目录,它还会为您创建一个全文搜索目录.

                You can do step 2 and 3 in SQL Sever Management Studio. In object explorer, right click on a table, select Full-Text index menu item and then Define Full-Text Index... sub-menu item. Full-Text indexing wizard will guide you through the process. It will also create a full-text search catalog for you if you don't have any yet.

                您可以在 MSDN

                执行完这些步骤后,您需要几分钟的时间来创建全文搜索索引(这取决于表和列数据的大小)

                After following the steps you need a few minutes so that the full text search index is created (this depends on the size of the table and column data)

                这篇关于不能在表或索引视图上使用 CONTAINS 或 FREETEXT 谓词,因为它不是全文索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                SQL query to group by day(按天分组的 SQL 查询)
                What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                Include missing months in Group By query(在 Group By 查询中包含缺失的月份)
                <legend id='LLGHy'><style id='LLGHy'><dir id='LLGHy'><q id='LLGHy'></q></dir></style></legend>

                  <i id='LLGHy'><tr id='LLGHy'><dt id='LLGHy'><q id='LLGHy'><span id='LLGHy'><b id='LLGHy'><form id='LLGHy'><ins id='LLGHy'></ins><ul id='LLGHy'></ul><sub id='LLGHy'></sub></form><legend id='LLGHy'></legend><bdo id='LLGHy'><pre id='LLGHy'><center id='LLGHy'></center></pre></bdo></b><th id='LLGHy'></th></span></q></dt></tr></i><div id='LLGHy'><tfoot id='LLGHy'></tfoot><dl id='LLGHy'><fieldset id='LLGHy'></fieldset></dl></div>

                  <small id='LLGHy'></small><noframes id='LLGHy'>

                  1. <tfoot id='LLGHy'></tfoot>

                        <tbody id='LLGHy'></tbody>

                          <bdo id='LLGHy'></bdo><ul id='LLGHy'></ul>