Вопрос

Получено требование перестроить полнотекстовый индекс 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
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top