SQL Server – List All Functions

select​​ name,​​ definition,​​ type_desc​​ FROM​​ sys.sql_modules​​ m​​ 

INNER​​ JOIN​​ sys.objects​​ o​​ ON​​ m.object_id=o.object_id

where​​ type_desc​​ like​​ '%function%'

ORDER​​ BY​​ Name

 

--OR

 

SELECT​​ *​​ 

FROM​​ sys.objects​​ 

WHERE​​ RIGHT(type_desc,​​ 8)​​ =​​ 'FUNCTION'

 

Knowledge worth sharing...Share on linkedin
Linkedin
Share on facebook
Facebook
Share on google
Google
Share on twitter
Twitter
Bookmark the permalink.

Leave a Reply

Leave a Reply

Your email address will not be published. Required fields are marked *