January 15, 2010 at 8:44 am
Hello all! We have a development database we use to house all of our SP's. There are hundreds. I was wondering if there was anyway that I could view those SP's and sort them by creation date. Any ideas? Thanks!
January 15, 2010 at 8:49 am
Select * from sys.objects WHERE type_desc = 'SQL_STORED_PROCEDURE' ORDER BY create_date
January 15, 2010 at 8:50 am
I think this does what you need:
SELECT name ,
SCHEMA_NAME(Schema_ID) ,
Create_Date ,
Modify_date ,
type_Desc
FROM sys.procedures
WHERE is_ms_shipped = 0 -- only those that were created by the user
ORDER BY Create_Date ASC
Cheers,
J-F
January 15, 2010 at 8:52 am
J-F Bergeron (1/15/2010)
I think this does what you need:
SELECT name ,
SCHEMA_NAME(Schema_ID) ,
Create_Date ,
Modify_date ,
type_Desc
FROM sys.procedures
WHERE is_ms_shipped = 0 -- only those that were created by the user
ORDER BY Create_Date ASC
Perfect, thanks!
January 15, 2010 at 9:07 am
My pleasure,
Thanks for the feedback.
Cheers,
J-F
January 19, 2010 at 12:06 pm
SSMS/View/Object Explorer Details/Procedures
January 19, 2010 at 12:31 pm
bgeige (1/19/2010)
SSMS/View/Object Explorer Details/Procedures
How would you sort the procs by creation date, as requested in the original post? :ermm:
January 19, 2010 at 12:48 pm
lmu92 (1/19/2010)
bgeige (1/19/2010)
SSMS/View/Object Explorer Details/ProceduresHow would you sort the procs by creation date, as requested in the original post? :ermm:
The columns shown are sortable. Just click on the column you want it to sort in the Object exploreer details tab.
-Roy
January 19, 2010 at 12:50 pm
bgeige (1/19/2010)
SSMS/View/Object Explorer Details/Procedures
Since my post, I also discovered this method. Thanks for the follow-up though! Works great... object explorer details window has proven to be very helpful!
January 19, 2010 at 12:56 pm
Ooopss!! Sorry, my fault (I mixed Object Explorer and Object Explorer Details...):blush:
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply