How to view a stored function - SQL Server

后端 未结 7 2391
陌清茗
陌清茗 2020-12-28 17:03

Version: SQLServer 8

I would like to view the contents of a stored function in sqlserver, i.e. what exactly the function is doing.

None of the options listed

7条回答
  •  囚心锁ツ
    2020-12-28 17:36

    select definition 
    from sys.sql_modules 
    where object_name(object_id) like 'functionName'
    

提交回复
热议问题