sql server技巧


--查出数据最新的存储过程
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

posted @ 2017-06-23 16:57  王子先生  阅读(149)  评论(0编辑  收藏  举报