Good I would like you to help me, I have 100 database and I would like to find a stored procedure, with a query to show me the location of the database that has that procedure:
I have made this script but as long as I am in a specific database it shows me. But when I am in the master bd and I do not show, what I would like when I am in the master bd, execute a script and tell me in which database is
SELECT *
FROM sys.sql_modules
WHERE OBJECT_NAME(OBJECT_ID) = 'nombre de procedimiento'