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 2000 Forums
 Transact-SQL (2000)
 User defined functions

Author  Topic 

ricky007
Starting Member

4 Posts

Posted - 2007-08-29 : 11:32:38
How to call user defined functions in stored procedures

dinakar
Master Smack Fu Yak Hacker

2507 Posts

Posted - 2007-08-29 : 11:45:01

SELECT * FROM dbo.yourUserDefinedFunction(@param1)


Dinakar Nethi
************************
Life is short. Enjoy it.
************************
http://weblogs.sqlteam.com/dinakar/
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-08-29 : 11:46:47
Are they SCALAR valued functions or TABLE valued functions?

If they are SCALAR, just use them as any other formula.
If they are TABLE, just use them as any other view or table, with the difference what you can supply parameters.



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

Koji Matsumura
Posting Yak Master

141 Posts

Posted - 2007-08-29 : 20:22:03
Don't forget to prefix with owner name.
dbo.FunctionName()
Go to Top of Page
   

- Advertisement -