我正在尝试清理数据库表,我真的想删掉两列,因为它们应该不再被使用.
'Property' table
- Unable to modify table.
The index '_dta_index_Property_7_669245439__K1_K9_K8_K24_K4_2_5_6_13_22_25_26_29' is dependent on column 'AveragePriceMta'.
The index '_dta_index_Property_7_669245439__K1_K9_K8_K24_2_4_5_6_7_13_22_25_26_29' is dependent on column 'AveragePriceMta'.
ALTER TABLE DROP COLUMN AveragePriceMta failed because one or more objects access this column.
Run Code Online (Sandbox Code Playgroud)
我已经去看了这个表的索引,在"包含的列"的灰色字段中找到了我要删除的特定列.显然我不想删除这些索引 - 但有没有办法刷新索引,以便我可以从不可编辑的包含列字段中删除有问题的列?
使用SQL Server 2008但数据库是2005 ..如果重要的话.
谢谢你的帮助!:)