How can I find the last modified date, modified user of an stored procedure in SQL Server 2008?

前端 未结 8 674
无人共我
无人共我 2021-02-01 23:50

I need to find the user name of the person who modified a particular stored procedure.

How do I find out when a stored procedure was last modified or compiled in Oracle?

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 23:55

    If you are going to need this information in the future, it may be worth looking at implementing a DDL trigger on the CREATE_PROCEDURE and ALTER_PROCEDURE DDL events

    Example B from the EVENTDATA page shows a trigger logging all DDL events, with user name captured.

提交回复
热议问题