SQL查询表、视图、存储过程、函数的创建和变更时间(收藏)

SELECT [name],   case [type] when 'U' then 'TB' when 'V' then 'VE' when 'P' then 'SP' when 'IF' then 'FC' end as  类型,   [create_date]as 创建时间,   [modify_date] as 修改时间 FROM sys.objects Where ([type]='U' or [type] = 'V' OR [type]= 'P' or [type]='IF') and ([name]<>'sysdiagrams' and [name] not like 'sp_%') ORDER BY [modify_date] desc

posted @ 2012-04-01 10:37  Ruiky  阅读(696)  评论(0编辑  收藏  举报