Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Date of the SP last change
Message
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01675875
Message ID:
01675879
Views:
47
>>>>Hi,
>>>>
>>>>Is it possible to find out when a SP was last updated (at design time)?
>>>>
>>>>I have a case where I was working on the same SP but in a couple of Databases. I want to find where which one is the latest update.
>>>>
>>>>TIA
>>>
>>>SELECT *
>>>FROM sys.objects
>>>WHERE type = 'P'
>>>ORDER BY modify_date DESC
>>>
>>
>>Thank you!
>>
>>Does type = 'P' mean "stored procedure"?
>>And, will the above script show ALL stored procedures in all the databases?
>
>Yes, 'P' means Procedure and yes all of them will be shown.
>If you want you can filter desired SP in WHERE clause.

Thank you very much! This script is very helpful to me.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform