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

后端 未结 5 990
心在旅途
心在旅途 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:29

    Try something like this:

    use YourDatabase;
    
    select [Name]    
    from sys.procedures
    where object_definition([object_id]) like '%YourColumnName%';
    

    Obviously this has the potential to generate a lot of false positives depending on what the column is named but at least you will have a list of procedures to sift through.

提交回复
热议问题