Forum Discussion
Benjamin Girardeau
Jun 26, 2018Microsoft
Creating a stored function with parameters
Hi,
I would like to create a stored function that has input parameters. Is there a way I can do this?
Right now I have:
// --- Start of stored function ------
let DiffUsers = (v...
Evgeny Ternovsky
Microsoft
You can use a let statement as in your example to serve the same purpose as a SProc. Today, however, this is only possible at query time; you cannot unfortunately save these as a "function" the same way that you can with views. It is something on our backlog, but will take a while to properly implement. For more details on the query-time options available, check out the article on UDFs.
Vino55
Feb 25, 2019Microsoft
Hi Evgeny Ternovsky,
Any idea when this feature will be lightened up?
we are looking forward to use saved function with parameters.
Thanks.