sp_depends – Dependencies for Objects

Getting the list of tables and Columns that are embedded in a view ,function or a procedure is simple

sp_depends ‘viewName or ProcedureName

Documented in MSDN

http://msdn.microsoft.com/en-us/library/ms189487.aspx

One Response to “sp_depends – Dependencies for Objects”

  1. [...] TableA to the new table TableB. Some of Datasets in the Reports are Stored Procedures and so I used sp_depends procedure to get the list of dependencies for [...]

Leave a Reply