Error: Cannot alter or drop column 'x' because it is enabled for Full-Text Search

前端 未结 2 1814
轻奢々
轻奢々 2021-02-19 08:32

I\'m refactoring an old database and removing columns no longer in use. The DB used to have full text indexing, so, some column are marked for full text.

How ca

2条回答
  •  悲&欢浪女
    2021-02-19 09:18

    Found the solution myself:

    -- You should call the DISABLE command 
    ALTER FULLTEXT INDEX ON TableName DISABLE
    ALTER FULLTEXT INDEX ON TableName DROP (ColumnName)
    ALTER TABLE TableName DROP COLUMN ColumnName
    

提交回复
热议问题