0

sp_depends will provide information for all dependent objects on a particular objects

But it is working for only single object , giving information about single object.

I want the information about multiple object,

How can I achieve it using sp_depend or any other way is there?

4

1 回答 1

3

You want sys.sql_expression_dependencies. This how you get the list of all the dependencies.

Here is an example of how I use it:

 select sed.referenced_entity_name, sed.referenced_database_name,
        OBJECT_NAME(referencing_id) as ObjectName
 from sys.sql_expression_dependencies sed
于 2013-02-11T14:52:08.927 回答