日期:2014-05-17  浏览次数:20406 次

能不能知道存储过程的修改时间
最近改工程,改了一些存储过程,但太多了,忘了改了哪些,想看一下修改时间,最好排个序什么的

------解决方案--------------------
SQL code

--按创建时间排序
select * from sysobjects
where xtype='p'
order by crdate desc
--按最后修改时间排序我也不会...

------解决方案--------------------
SQL code
select * from information_schema.routines_columns
--其中created 创建存储过程的时间,
--last_altered 最后一次修改存储过程的时间

------解决方案--------------------
SQL code
select name,create_date,modify_date from sys.objects where type='P'