How can I list all foreign keys referencing a given table in SQL Server?

后端 未结 26 2661
梦毁少年i
梦毁少年i 2020-11-22 07:13

I need to remove a highly referenced table in a SQL Server database. How can I get a list of all the foreign key constraints I will need to remove in order to drop the tabl

26条回答
  •  抹茶落季
    2020-11-22 08:01

    Most preferable answer by @BankZ

    sp_help 'TableName'   
    

    additionally for different schema

    sp_help 'schemaName.TableName'   
    

提交回复
热议问题