How to Find the list of Stored Procedures which affect a particular column?

后端 未结 5 986
心在旅途
心在旅途 2021-01-12 05:48

Im working on this large DB which has a lot of the business knowledge embedded in the SPs[I know!] and there is a lot of chaining between the SPs. i.e one stored proc callin

5条回答
  •  没有蜡笔的小新
    2021-01-12 06:13

    Have you tried this : EXEC sp_depends @objname = [table name of the column you are interested in].

    So for example, if you had a column named Price in a table named Product, you would execute this: EXEC sp_depends @objname = N'Product'.

    Simply executing this would give you list of all sps, views, etc which depend on that particular table.

    I use this all the time as I work with a db which has over 400 tables :-)

    sp_depends page on MSDN

提交回复
热议问题