题
需要重建mssql全文索引。
问题是 - 我需要确切地知道工作何时完成。因此 - 只需调用:
ALTER FULLTEXT CATALOG fooCatalog
REBUILD WITH ACCENT_SENSITIVITY = OFF
不起作用或者我做的事情有点错误。:/
有任何想法吗?
解决方案
可以通过查询索引属性确定全文索引的状态一>是这样的:
SELECT FULLTEXTCATALOGPROPERTY('IndexingCatalog', 'PopulateStatus') AS Status
表全文填充状态
Displays the population status of the full-text indexed table. The possible values are as follows: 0 = Idle. 1 = Full population is in progress. 2 = Incremental population is in progress. 3 = Propagation of tracked changes is in progress. 4 = Background update index is in progress, such as automatic change
跟踪。
5 = Full-text indexing is throttled or pause
其他提示
由于我还不能评论马格努斯的回答(缺乏声誉),我将在这里添加它。我发现MSDN上的信息有冲突 这个 MSDN 链接. 。根据我引用的链接,PopulateStatus 有 10 个可能的值,如下所示:
0 = Idle. 1 = Full population in progress 2 = Paused 3 = Throttled 4 = Recovering 5 = Shutdown 6 = Incremental population in progress 7 = Building index 8 = Disk is full. Paused. 9 = Change tracking
SELECT name, case FULLTEXTCATALOGPROPERTY(name, 'PopulateStatus')
when 0 then 'Idle'
when 1 then ' Full population in progress'
when 2 then ' Paused'
when 3 then ' Throttled'
when 4 then ' Recovering'
when 5 then ' Shutdown'
when 6 then ' Incremental population in progress'
when 7 then ' Building index'
when 8 then ' Disk is full. Paused.'
when 9 then ' Change tracking' end AS Status
from sys.fulltext_catalogs
不隶属于 StackOverflow