Stored procedures reverse engineering

后端 未结 8 1560
长发绾君心
长发绾君心 2020-12-16 00:58

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

8条回答
  •  Happy的楠姐
    2020-12-16 01:38

    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.

提交回复
热议问题