Skip to content

Instantly share code, notes, and snippets.

@ecavazos
Created April 30, 2010 22:49
Show Gist options
  • Save ecavazos/385855 to your computer and use it in GitHub Desktop.
Save ecavazos/385855 to your computer and use it in GitHub Desktop.
select * from
(
select [name],create_date,modify_date, 'sp' as ObjType from sys.procedures
union all
select [name],create_date,modify_date, 'table' as ObjType from sys.tables
union all
select [name],create_date,modify_date, 'view' as ObjType from sys.views
) sub
order by modify_date desc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment