We\'re having problem with a huge number of legacy stored procedures at work. Do you guys recommend any tool the can help better understand those procedures? Some kind of re
How to find the dependency chain of a database object (MS SQL Server 2000(?)+) by Jacob Sebastian
Every time he needs to deploy a new report or modify an existing report, he needs to know what are the database objects that depend on the given report stored procedure. Some times the reports are very complex and each stored procedure might have dozens of dependent objects and each dependent object may be depending on other dozens of objects.
He needed a way to recursively find all the depending objects of a given stored procedure. I wrote a recursive query using CTE to achieve this.