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:
01675886
Views:
47
>Here is my verion:
>
>SELECT *
>FROM sys.objects
>WHERE type = 'P' and name = 'my_stored_procedure' 
>ORDER BY modify_date DESC
>
>
>I have checked that I use the name which is the same in more than one DB. What am I doing wrong?

Sorry,
Naomi point me that you asked about ALL databases.
This select will return SPs from current database only, not from all.
EXEc sp_MSForEachDB'
SELECT ''?'' as DB,*
FROM sys.objects
WHERE type = ''P'' AND Name = ''my_stored_procedure''
ORDER BY modify_date DESC'
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform