I am trying to drop a table but getting the following message:
Msg 3726, Level 16, State 1, Line 3 Could not drop object \'dbo.UserProfile\' bec
Try this
SELECT object_name(parent_object_id) ParentTableName, object_name(referenced_object_id) RefTableName, name FROM sys.foreign_keys WHERE parent_object_id = object_id('Tablename')