How can I quickly identify most recently modified stored procedures in SQL Server

后端 未结 7 678
我寻月下人不归
我寻月下人不归 2021-01-31 04:03

I Need to manually migrate modified stored procedures from a DEV SQL Server 2005 database instance to a TEST instance. Except for the changes I\'m migrating, the databases have

7条回答
  •  孤独总比滥情好
    2021-01-31 04:36

    You can execute this query to find all stored procedures modified in the last x number of days:

    SELECT name
    FROM sys.objects
    WHERE type = 'P'
        AND DATEDIFF(D,modify_date, GETDATE()) < X
    

提交回复
热议问题