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)
 how to find which all functions are called inside

Author  Topic 

nitin1353
Constraint Violating Yak Guru

381 Posts

Posted - 2008-07-23 : 06:56:51
Gurus
Suppose i have a function a and in function a i am calling other function b in function a and function c in function a

now thry t-sql how can i find out the number of functions called in a function??

Thanks

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-07-23 : 07:06:10
Use SQL Profiler.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-07-23 : 07:12:35
try using sp_depends
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-07-23 : 07:37:25
Will that work on dynamic sql too?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

VGuyz
Posting Yak Master

121 Posts

Posted - 2008-07-23 : 10:31:23
offcourse it can be used in dynamic sql.
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-07-23 : 11:28:32
I meant, do the sp_depends stored procedure notice the dynamic dependencies in a procedure as well.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -