【发布时间】:2014-01-23 18:03:14
【问题描述】:
这是我得到的错误:
Message: [Microsoft][SQL Server Native Client 11.0][SQL Server]
Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'database.dbo.crm_main'
because it is not full-text indexed.
但我已经创建了它们,这是我使用的命令:
use [database]
create fulltext catalog FullTextCatalog as default
create fulltext index on [database].[dbo].[crm_main] key index PK_crm_main
ON FullTextCatalog WITH CHANGE_TRACKING AUTO
在创建过程中没有遇到错误。我做错了什么?
这是我的sql语句:
SELECT TOP 1000 *
FROM [database].[dbo].[crm_main]
INNER JOIN FREETEXTTABLE ([database].[dbo].[crm_main], *, '%Wade%')
AS SEARCH_TABLE ON SEARCH_TABLE.[KEY] = crm_main.id
【问题讨论】:
标签: sql sql-server sql-server-2008 full-text-search