Sử dụng sys.dm_sql_referencing_entities
:
SELECT
referencing_schema_name, referencing_entity_name, referencing_id,
referencing_class_desc, is_caller_dependent
FROM
sys.dm_sql_referencing_entities ('mySchemaName.myTableName', 'OBJECT');
GO
nơi 'mySchemaName.myTableName'
là schema.table của bạn, ví dụ:'dbo.MyTable'