在 SQL Server 全文索引方案中,我想知道表是否在
-
start_chage_tracking
mode
-
update_index
mode
-
start_change_tracking
and start_background_updateindex
modes
问题是我将表设置为“后台更新索引”,然后告诉它“开始更改跟踪”,但几个月后它似乎没有跟踪更改。
我如何查看“后台更新索引”和“更改跟踪”标志的状态?
example:
sp_fulltext_table @tabname='DiaryEntry', @action='start_background_updateindex'
Server: Msg 15633, Level 16, State 1, Procedure sp_fulltext_table, Line 364
Full-text auto propagation is currently enabled for table 'DiaryEntry'.
sp_fulltext_table @tabname='Ticket', @action='start_background_updateindex'
Server: Msg 15633, Level 16, State 1, Procedure sp_fulltext_table, Line 364
Full-text auto propagation is currently enabled for table 'Ticket'.
明明是一张桌子has索引状态,我只想知道它表明我可以将其显示给用户(即我)。
其他可用的 API:
EXECUTE sp_help_fulltext_tables
仅返回目录中的表,不返回其状态。
TABLE_OWNER TABLE_NAME FULLTEXT_KEY_INDEX_NAME FULLTEXT_KEY_COLID FULLTEXT_INDEX_ACTIVE FULLTEXT_CATALOG_NAME
=========== ========== ======================= ================== ===================== =====================
dbo DiaryEntry PK_DiaryEntry_GUID 1 1 FrontlineFTCatalog
dbo Ticket PK__TICKET_TicketGUID 1 1 FrontlineFTCatalog
我可以得到填充状态整个目录的:
SELECT FULLTEXTCATALOGPROPERTY('MyCatalog', 'PopulateStatus') AS PopulateStatus
它返回目录的状态:
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
但不是为了一张桌子。
SQL Server 2000 SP4
SELECT @@version
Microsoft SQL Server 2000 - 8.00.194 (Intel X86)
Aug 6 2000 00:57:48
Copyright (c) 1988-2000 Microsoft Corporation
Standard Edition on Windows NT 5.0 (Build 2195: Service Pack 4)
不管有什么错误,我都想创建 UI 以便能够轻松地查看其状态。