Is it possible to call a user-defined function from a front end or middle-tier component written in vb.net or c#.net. If so, is it possible get the return value, which is either scalar or a table?
Make you life easy and your program more efficient...convert it to a stored procedure.
-Karl
[red] Cursors, triggers, user-defined functions and dynamic SQL are an axis of evil![/red]
[green]Life's uncertain...eat dessert first...www.deerfieldbakery.com[/green]
Just call it from a stored procedure or select statement the same way it would normally be called. Of course all of your code to the ASP page should be from stored procedures for security and efficiency reasons.
Select myFunction(1,203)
This should give you the result of that function assuming it was a scalar function.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.