Find all stored procedures that reference a specific column in some table

前端 未结 9 1946
广开言路
广开言路 2021-01-30 16:01

I have a value in a table that was changed unexpectedly. The column in question is CreatedDate: this is set when my item is created, but it\'s being changed by a st

9条回答
  •  花落未央
    2021-01-30 16:46

    try this..

    SELECT Name
    FROM sys.procedures
    WHERE OBJECT_DEFINITION(OBJECT_ID) LIKE '%CreatedDate%'
    GO
    

    or you can generate a scripts of all procedures and search from there.

提交回复
热议问题