14

需要重建 mssql 全文索引。
问题是 - 我需要确切知道工作何时完成。因此 - 只需调用:

ALTER FULLTEXT CATALOG fooCatalog
REBUILD WITH ACCENT_SENSITIVITY = OFF  

不起作用,或者我做错了什么。:/

有任何想法吗?

4

3 回答 3

19

您可以通过查询索引属性来确定全文索引的状态,如下所示:

SELECT FULLTEXTCATALOGPROPERTY('IndexingCatalog', 'PopulateStatus') AS Status

填充状态:
0 = 空闲
1 = 完全填充正在进行中
2 = 暂停
3 = 节流
4 = 正在恢复
5 = 关闭
6 = 正在进行增量填充
7 = 构建索引
8 = 磁盘已满。暂停。
9 = 更改跟踪

但也要注意文章中的这个注释:

在 SQL Server 的未来版本中将删除以下属性:LogSize 和 PopulateStatus。避免在新的开发工作中使用这些属性,并计划修改当前使用其中任何一个的应用程序。

编辑:更正了指向较新页面的链接并添加了注释中的引用

于 2009-07-07T11:36:18.127 回答
4

由于我还不能评论 Magnus 的答案(缺乏声誉),我将在此处添加它。根据这个 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
于 2014-06-24T21:57:38.167 回答
3
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
于 2019-03-31T06:14:59.450 回答