UDF Function Parameter Pass

I have a UDF that requires 4 parameters (variables). I am just starting to work with these (UDF's) so I thought I could implement them the same as a Stored Proc. I tried an EXEC udf (paramenter 1, parameter 2, parameter 3, parameter 4). I find that is not the way to do it. So how can I use this UDF and how do I pass it the parameters?
SeTechAsked:
Who is Participating?
 
tim_csCommented:
Use select instead of EXEC and make sure you put the schema name in front of the function name.

select dbo.udf(param1, param2)
0
 
Muhammad Ahmad ImranDatabase DeveloperCommented:
here is the answer to your question

http://www.sqlteam.com/article/user-defined-functions
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.