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]')
354700cookie-checkMSSQL find foreign-key constraints
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]')