--查出数据最新的存储过程
select name,modify_date from sys.procedures where modify_date>'2017-05-26 17:21:09.370' order by modify_date desc
---查出数据库最新的函数
select [name], create_date, modify_date, type_desc FROM sys.all_objects where
(--type_desc = N'SQL_STORED_PROCEDURE' OR
type_desc = N'SQL_TABLE_VALUED_FUNCTION' OR
type_desc = N'SQL_SCALAR_FUNCTION'
--type_desc = N'USER_TABLE'
) AND schema_id <> 4 order by type_desc asc, modify_date desc