Where are user defined functions stored in MS SQL Server 2008?

偶尔善良 提交于 2020-01-21 11:21:06

问题


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.


回答1:


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

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'


来源:https://stackoverflow.com/questions/8812197/where-are-user-defined-functions-stored-in-ms-sql-server-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!