Sql server 如何编写全文目录?

Sql server 如何编写全文目录?,sql-server,full-text-search,Sql Server,Full Text Search,我有一个FTC,包括5个表的5个全文索引。 我需要使用T-SQL脚本将这些表中的PKs和FKs:id INT转换为id BIGINT。 当然,服务器需要删除具有这些ID的表的FTI。 如何在脚本开始时为FTI编写脚本,然后进行转换,并在脚本结束时在FTC中恢复完全相同的FTI?如何(注意这只是FTI部分,我相信您已经有了列类型转换脚本): 嗯 alter fulltext index on table1 disable -- below line is optional alter fullte

我有一个FTC,包括5个表的5个全文索引。 我需要使用T-SQL脚本将这些表中的PKs和FKs:id INT转换为id BIGINT。 当然,服务器需要删除具有这些ID的表的FTI。 如何在脚本开始时为FTI编写脚本,然后进行转换,并在脚本结束时在FTC中恢复完全相同的FTI?

如何(注意这只是FTI部分,我相信您已经有了列类型转换脚本):

alter fulltext index on table1 disable
-- below line is optional
alter fulltext index on table1 drop ([any_fti_column_you_need_to_change])
-- convert your columns from INT to BIGINT, note with PKs it may not be that simple
alter fulltext index on table1 
    add ([any_column_you_dropped_and_changed_which_was_a_part_of_fti])
alter fulltext index on table1 enable