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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Get All The Stored Procedure

Author  Topic 

jackbharat
Starting Member

1 Post

Posted - 2009-08-17 : 19:15:54
Please tell me that how can i get list of all the stored procedure that contains the user defined function

Nageswar9
Aged Yak Warrior

600 Posts

Posted - 2009-08-17 : 23:59:17
Hi Try this once,

Select object_name(id) from sys.syscomments where text like '%functionname%'
Go to Top of Page

bklr
Master Smack Fu Yak Hacker

1693 Posts

Posted - 2009-08-18 : 00:22:26
exec sp_depends 'functionname'
Go to Top of Page

DonAtWork
Master Smack Fu Yak Hacker

2167 Posts

Posted - 2009-08-18 : 07:20:18
[code]
select routine_name
from information_schema.routines
where routine_definition like '%function_name%'
[/code]
This will find it if its commented out too

http://weblogs.sqlteam.com/jeffs/archive/2008/05/13/question-needed-not-answer.aspx
How to ask: http://weblogs.sqlteam.com/brettk/archive/2005/05/25.aspx

For ultra basic questions, follow these links.
http://www.sql-tutorial.net/
http://www.firstsql.com/tutor.htm
http://www.w3schools.com/sql/default.asp
Go to Top of Page
   

- Advertisement -