SQL Server Dependencies

前端 未结 8 1678
说谎
说谎 2020-11-28 10:00

Is there an easy way to chase down table/stored procedure/function dependencies in SQL Server 2005+? I\'ve inherited a giant application with lots of tables and even more s

8条回答
  •  难免孤独
    2020-11-28 10:55

    The system table that attempt to keep track of dependencies is usually wrong, so any answer you get from that, you will have to re-confirm by other means, so why bother with it?

    Commercial products exist, such as Redgate SQL Dependency Tracker.

    A poor developer like myself, I use SQL Digger, which is free. By searching the DDL for an object name, you usually can find what first degree dependencies there are for an object in question.

    The next level of dependency tracing is to trace what C# or VB.NET net objects depend on an object in SQL, but AFAIK, tools don't exist for that outside of global search.

提交回复
热议问题