SELECT NAME , OBJECT_NAME(referenced_object_id)
FROM sys.foreign_keys
WHERE OBJECT_NAME(parent_object_id)='tb_name'
------解决方案--------------------
------解决方案-------------------- select s.id,k.fkeyid,k.fkey,c.name from sysobjects s inner join sysforeignkeys k on k.constid=s.id inner join syscolumns c on c.id=k.fkeyid and k.fkey=c.colid where OBJECT_NAME(parent_obj)='tablename' and s.xtype='F'