----- Cross ref. Table used in another database
SELECT OBJECT_NAME (referencing_id) AS referencing_object, referenced_database_name,
referenced_schema_name, referenced_entity_name
FROM sys.sql_expression_dependencies
WHERE referenced_database_name ='XYZ' --- Target(Ref) DB
AND is_ambiguous = 0;
SELECT OBJECT_NAME (referencing_id) AS referencing_object, referenced_database_name,
referenced_schema_name, referenced_entity_name
FROM sys.sql_expression_dependencies
WHERE referenced_database_name ='XYZ' --- Target(Ref) DB
AND is_ambiguous = 0;
No comments:
Post a Comment