sys.dm_sql_referencing_entities
gebruiken
:
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
waar 'mySchemaName.myTableName'
is uw schema.table, bijvoorbeeld 'dbo.MyTable'