How to know that how many database tables, views or any other object attached to a view in sql server 2005 database. I tried with Sp_Depends, but amazingly it is not showing the SP name in which it is getting used.
When I run the statement Sp_depends vw_MyViewName.
I am only getting the name of the tables and columns which I have used inside the vw_MyViewName. I need to know other objects related to this view.