Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 how to get the list of functions created by user i

Author  Topic 

aakcse
Aged Yak Warrior

570 Posts

Posted - 2010-05-20 : 11:51:19
Hi All

how to get the list of functions created by user in sqlserver2005



-Neil

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-05-20 : 11:56:12
This is one way
SELECT * FROM sys.objects
where type_desc like '%FUNCTION%'

EDIT : Will give you all the UDFs on that DB
Go to Top of Page

aakcse
Aged Yak Warrior

570 Posts

Posted - 2010-05-20 : 13:31:07
I have used the below query, I am right?

SELECT schema_name(uid),a.name
FROM sys.sysobjects a
WHERE xtype = 'FN' and a.name not like '%$%' ORDER BY 2

-Neil
Go to Top of Page

vijayisonly
Master Smack Fu Yak Hacker

1836 Posts

Posted - 2010-05-20 : 14:14:02
This wont return Table Valued functions which will have the type as 'TF'...you may want to include that.
Go to Top of Page
   

- Advertisement -