我使用SQL Server 2008 Management studio生成全文索引。脚本如:
CREATE FULLTEXT INDEX ON [dbo].[MyTable](
[ID] LANGUAGE [English],
[Name] LANGUAGE [English],
...
KEY INDEX [MyTable_PK]ON ([AMSFullTextSearchCatalog], FILEGROUP [PRIMARY])
WITH (CHANGE_TRACKING = AUTO, STOPLIST = SYSTEM)
GO
然后我尝试运行这个脚本并得到错误说:
Msg 102, Level 15, State 1, Line 11
Incorrect syntax near '='.
不确定原因。如何解决?
答案 0 :(得分:0)
尝试替换此行:
WITH (CHANGE_TRACKING = AUTO, STOPLIST = SYSTEM)
用这个:
WITH STOPLIST = SYSTEM , CHANGE_TRACKING AUTO
这是他们在MSDN's documentation
上使用的语法