sql查处数据库中所有的表的依赖关系

select distinct OBJECT_NAME(deps.depid),obj.type,'referenced by object' = obj.name from sys.objects obj, sysdepends deps  
    where   obj.object_id = deps.id
原文地址:https://www.cnblogs.com/mingyongcheng/p/2550340.html