从脚本跟踪存储过程位于哪个数据库

发布于 2024-09-12 06:41:52 字数 118 浏览 3 评论 0原文

有没有办法查询存储过程位于哪个数据库?我让这堆数据库彼此进行了大量的跨数据库查询,现在我迷失了 1 个存储过程,我只想查看它位于哪个数据库。我想制作一个脚本来返回该存储过程所在位置的数据库名称。

这可能吗?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文