Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


UDF Function Parameter Pass

Posted on 2011-10-28
Medium Priority
Last Modified: 2012-05-12
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?
Question by:SeTech
LVL 15

Accepted Solution

tim_cs earned 2000 total points
ID: 37044447
Use select instead of EXEC and make sure you put the schema name in front of the function name.

select dbo.udf(param1, param2)
LVL 14

Expert Comment

by:Muhammad Ahmad Imran
ID: 37044458
here is the answer to your question


Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question