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

前端 未结 9 1875
广开言路
广开言路 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:41

    You can use the below query to identify the values. But please keep in mind that this will not give you the results from encrypted stored procedure.

    SELECT DISTINCT OBJECT_NAME(comments.id) OBJECT_NAME
        ,objects.type_desc
    FROM syscomments comments
        ,sys.objects objects
    WHERE comments.id = objects.object_id
        AND TEXT LIKE '%CreatedDate%'
    ORDER BY 1
    

提交回复
热议问题