select * from (
select
refName = object_name(referenced_object_id),
parentObject = object_name(parent_object_id) ,
objectName= object_name(object_id)
from sys.foreign_keys
)
m
转载于:https://www.cnblogs.com/mingyongcheng/archive/2012/06/15/2550588.html