advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Partners & Affiliates
advertisement
advertisement
Tip of the Day
Average Rating: 4.1/5 | Rate this item | 7 users have rated this item.
Expertise: Intermediate
Language: SQL
July 6, 2009
Find All User-Defined Functions in a SQL Server Database
This query returns a list of all the user-defined functions in a SQL Server database. In a T-SQL Window, write this query, substituting the appropriate database name for the db_name portion:
Use <db_name>
select routine_name from information_schema.routines
where routine_type='function'

Run the query.

This works in both MS SQL 2000 and MS SQL 2005.

Jaya Nehru
If you have a hot tip and we publish it, we'll pay you. However, due to accounting overhead we no longer pay $10 for a single tip submission. You must accumulate 10 acceptable tips to receive payment. Be sure to include a clear explanation of what the technique does and why it's useful. If it includes code, limit it to 20 lines if possible. Submit your tip here.
Please rate this item (5=best)
 1  2  3  4  5
advertisement
advertisement