Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find stored procedure
Message
 
 
To
15/04/2019 19:29:09
General information
Forum:
Microsoft SQL Server
Category:
Database management
Miscellaneous
Thread ID:
01668087
Message ID:
01668089
Views:
34
>>Hi,
>>
>>In my SQL Server 2008 I have tons of databases (for all customers). Some time ago I created a custom stored procedure for one of the customers. I know the stored procedure name. But I can't find it. Is there a command I can execute in my SSMS that will find the SQL database that has this SP?
>>
>>TIA
>
>Dmitry,
>
>The sys.procedures table has that information for you. You can query it by its name column using a regular SELECT statement (assuming you were granted enough privileges).

Antonio,
First, thank you. But the following SQL Select only returns 2 records:
select * from sys.procedures 
And I know I have many SPs in many DBs.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform