Trace what DB a stored Procedure is located from a script
-
03-10-2020 - |
Question
is there a way to make a query which DB the Stored Procedure is located? I got this bunch of Databases doing a lot of Cross DB query from each other, now I got lost with 1 stored procedure and I just want to look from which DB it is located. I want to make a script that will return the DB name of where that stored procedure is located.
Is this possible?
Solution
Look to this question Query to list all stored procedures
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow