How to find what foreign key references an index on table

前端 未结 3 959
灰色年华
灰色年华 2021-01-04 07:32

I have a non clustered index I would like to drop (it is a duplicate of the clustered index). However, it is being used by a foreign key constraint. I would like to be abl

3条回答
  •  一向
    一向 (楼主)
    2021-01-04 08:04

    I realize that this post is a couple of years old but I wouldn't drop any such index without digging into it a LOT deeper. The non-clustered index is NOT the same as the clustered index even if the key columns are identical. The Leaf Level of the NCI is MUCH more narrow than the Leaf Level of the CI and, therefor, contains many more rows of information per page than the CI. You may actually be causing a performance problem (especially for inserts on the other table) by dropping the NCI.

提交回复
热议问题