Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find stored procedure
Message
 
 
À
15/04/2019 19:29:09
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Divers
Thread ID:
01668087
Message ID:
01668089
Vues:
35
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform