用户定义的函数存储在 MS SQL Server 2008 中的哪里?

发布于 2024-12-25 22:44:42 字数 265 浏览 3 评论 0原文

我希望能够查看与用户定义函数相关的代码。我可以通过执行以下操作来看到名称等,

select * from information_schema.routines where routine_type='function'

这一切都很好,但我实际上可以看到代码。我是否需要在 SQL Server Management Studio 中执行此操作?如果需要,如何执行?

感谢您的所有帮助,对于 IIS/MS SQL 内容,我是个菜鸟。

I want to be able to see the code associated with the User Defined Function. I can see the name etc by doing the following,

select * from information_schema.routines where routine_type='function'

Which is all fine and dandy but I can actually see the code. Do I need to do this in SQL Server Management Studio, and if so how?

Thanks for all the help, I'm a noob when it comes to IIS/MS SQL stuff.

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

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

发布评论

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

评论(1

小情绪 2025-01-01 22:44:42

在 SQL Server Management Studio (SSMS) 中,查看 Programmability\Functions 分支。

在此处输入图像描述

既然你问了,这里是如何在 SQL 中执行此操作,但如果你不这样做,它不会对你有帮助没有权限。

EXEC sp_HelpText 'someUserDefinedFunction'

In SQL Server Management Studio (SSMS) look under the Programmability\Functions branch.

enter image description here

Since you asked, here is how to do it in SQL, not that it will help you if you don't have permissions.

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