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

后端 未结 7 757
我寻月下人不归
我寻月下人不归 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:46

    You can use following type of query to find modified stored procedures , you can use any number then 7 as per your needs

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

提交回复
热议问题