2017-08-24 26 views
0

私は、5つのテーブルに対して5つのフルテキストインデックスを含むFTCを持っています。 T-SQLスクリプトを使用して、これらのテーブルのPKとFKをid INTからid BIGINTに変換する必要があります。 もちろん、サーバーはこれらのIDを持つテーブルのFTIを削除する必要があります。 スクリプトの開始時にFTIをスクリプト化してから変換を行い、スクリプトの最後にFTで同じFTIを正確に復元する方法はありますか?フルテキストカタログのスクリプト作成方法

答えて

1

どのように(私はすでに列型変換スクリプトを持って信頼し、これが唯一の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 

HTH

関連する問題