On my previous blog posts
[link] I discussed about
System Catalog views and some tips to get the informaion regarding Database objects, like: Tables, Views, etc.
Adding to that post, this post provides the basic information that various DBAs & Developers are interested in, i.e. when was the Table created? or When was that particular Stored Procedure modified or updated?
Following set of queries provides this information:
01 | select object_id, name , create_date, type_desc, modify_date |
04 | select object_id, name , create_date, type_desc, modify_date |
07 | select object_id, name , create_date, type_desc, modify_date |
10 | select object_id, name , create_date, type_desc, modify_date |
-OR- a single query to check all objects information:
1 | select object_id, name , create_date, type_desc, modify_date |
3 | where type in ( 'U' , 'V' , 'P' , 'TR' , 'FN' , 'IF' , 'TF' ) |
By querying the sys.all_objects view you can also get the information about other DB objects other than listed above, like: Indexes, Constraints, Synonyms, Stats, etc.