gpt4 book ai didi

sql-server - 如何定义全文索引重建是否完成?

转载 作者:行者123 更新时间:2023-12-02 07:26:22 26 4
gpt4 key购买 nike

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

ALTER FULLTEXT CATALOG fooCatalog
REBUILD WITH ACCENT_SENSITIVITY = OFF

不起作用或者我做的事情有点错误。 :/

有什么想法吗?

最佳答案

您可以通过查询indexing properties来确定全文索引的状态。像这样:

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

Populate Status:
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

但还要注意文章中的这一注释:

The following properties will be removed in a future release of SQL Server: LogSize and PopulateStatus. Avoid using these properties in new development work, and plan to modify applications that currently use any of them.

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

关于sql-server - 如何定义全文索引重建是否完成?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1091812/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com