简体   繁体   中英

How to write a SQL query to get all modified dates of a stored procedure

I want to get all modified dates (n modified dates) of a stored procedure.

Though I am able to get last modified date of a stored procedure like this:

select name, create_date, modify_date 
from sys.procedures 
where name = 'SPF_OLS_GET_CUSTOMER_SUMMARY' 
order by modify_date desc;

but I want to get all modified dates. Is it possible? If yes, then how to do that?

Thanks in advance

You can try below query:

SELECT name, create_date, modify_date
FROM sys.objects
WHERE type_desc = 'SQL_STORED_PROCEDURE'

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM