SQL Server has a system stored procedure called sp_depends
that returns information about dependencies between objects within the current database.
Microsoft has marked this stored procedure as deprecated, which means that it’s in maintenance mode and may be removed in a future version of SQL Server. You should avoid using sp_depends
in new development work, and you should modify applications that currently use it to use either sys.dm_sql_referencing_entities()
or sys.dm_sql_referenced_entities()
instead (depending on whether you need referencing entities, or referenced entities to be returned.