Hello,
I have a HUMONGOUS legacy databases with thousands of objects. I really want to delete 113 tables, but I need to get a comprehensive list of the dependencies that would need to either modified or removed as well. Is there any way to do this? The "view dependencies" UI in SSMS is going to take way too long. What I am thinking of is putting the names of the 113 tables in a table, and then joining that with sql_expression_dependencies to get all of the dependencies, and then recursing until I have found them all. This seems to work great, but it doesn't seem to be returning the names of TABLES which depend on my tables. It only returns SPs, FUNCTIONs, etc. Any idea how I can augment this to include all dependency types?