MSSQL find foreign-key constraints

Date: 2020-03-02

Fix for: Could not drop object because it is referenced by a FOREIGN KEY constraint

SELECT * 
FROM sys.foreign_keys
WHERE referenced_object_id = object_id('[dbo].[Plan_Duty]')
35470cookie-checkMSSQL find foreign-key constraints